hamza2923 commited on
Commit
4601ab2
·
verified ·
1 Parent(s): c01cb09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -102,14 +102,9 @@ def whisper_transcribe():
102
 
103
  full_text = " ".join(segment.text for segment in segments)
104
 
105
- # return Response(
106
- # response=full_text,
107
- # status=200,
108
- # mimetype='text/plain'
109
- # )
110
- return jsonify({
111
- 'Transcribe Text': full_text,
112
- })
113
 
114
  except Exception as e:
115
  return jsonify({'error': str(e)}), 500
 
102
 
103
  full_text = " ".join(segment.text for segment in segments)
104
 
105
+ return jsonify({'transcription': full_text}), 200
106
+
107
+
 
 
 
 
 
108
 
109
  except Exception as e:
110
  return jsonify({'error': str(e)}), 500