hamza2923 commited on
Commit
d253fd6
·
verified ·
1 Parent(s): 816272b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -168,11 +168,12 @@ def transcribe():
168
  file_type = 'video' if file_extension in ALLOWED_VIDEO_EXTENSIONS else 'audio'
169
 
170
  # Send FCM data message
171
- send_fcm_data_message(fcm_token, full_text, file_type)
172
 
173
  return jsonify({
174
  'transcription': full_text,
175
- 'file_type': file_type
 
176
  }), 200
177
 
178
  except Exception as e:
 
168
  file_type = 'video' if file_extension in ALLOWED_VIDEO_EXTENSIONS else 'audio'
169
 
170
  # Send FCM data message
171
+ is_fcm_send = send_fcm_data_message(fcm_token, full_text, file_type)
172
 
173
  return jsonify({
174
  'transcription': full_text,
175
+ 'file_type': file_type,
176
+ 'is_fcm_send':is_fcm_send
177
  }), 200
178
 
179
  except Exception as e: