Update app.py
Browse files
app.py
CHANGED
@@ -102,14 +102,9 @@ def whisper_transcribe():
|
|
102 |
|
103 |
full_text = " ".join(segment.text for segment in segments)
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
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
|