hamza2923 commited on
Commit
0921fe5
·
verified ·
1 Parent(s): d253fd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -168,12 +168,12 @@ def transcribe():
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:
 
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
+ send_fcm_data_message(fcm_token, full_text, file_type)
173
+
174
  return jsonify({
175
  'transcription': full_text,
176
+ 'file_type': file_type
 
177
  }), 200
178
 
179
  except Exception as e: