hamza2923 commited on
Commit
c01cb09
·
verified ·
1 Parent(s): 2b524bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -102,11 +102,14 @@ 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
 
111
  except Exception as e:
112
  return jsonify({'error': str(e)}), 500
 
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