hamza2923 commited on
Commit
1fe94d4
·
verified ·
1 Parent(s): 71fcea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 if transcription else '',
95
- 'file_type': file_type if file_type else '',
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: