Update app.py
Browse files
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 |
-
|
107 |
-
|
108 |
-
|
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
|