Update app.py
Browse files
app.py
CHANGED
@@ -91,8 +91,8 @@ def send_fcm_data_message(fcm_token, transcription, file_type, created_date, tra
|
|
91 |
),
|
92 |
data={
|
93 |
'status': status,
|
94 |
-
'transcription': transcription
|
95 |
-
'file_type': file_type
|
96 |
'created_date': created_date,
|
97 |
'transcription_name': transcription_name
|
98 |
},
|
@@ -181,7 +181,6 @@ def transcribe():
|
|
181 |
return jsonify({}), 200
|
182 |
|
183 |
except Exception as e:
|
184 |
-
send_fcm_data_message(fcm_token, full_text, file_type, created_date, transcription_name, "Transcription failed. Please re-upload the file to try again.","fail")
|
185 |
return jsonify({'error': str(e)}), 500
|
186 |
|
187 |
finally:
|
|
|
91 |
),
|
92 |
data={
|
93 |
'status': status,
|
94 |
+
'transcription': transcription,
|
95 |
+
'file_type': file_type,
|
96 |
'created_date': created_date,
|
97 |
'transcription_name': transcription_name
|
98 |
},
|
|
|
181 |
return jsonify({}), 200
|
182 |
|
183 |
except Exception as e:
|
|
|
184 |
return jsonify({'error': str(e)}), 500
|
185 |
|
186 |
finally:
|