dhairyashah commited on
Commit
26cdac6
·
verified ·
1 Parent(s): b1efb57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def analyze_video_api():
115
  os.remove(filepath) # Remove the file if an error occurs
116
  return jsonify({'error': str(e)}), 500
117
  else:
118
- return jsonify({'error': 'Invalid file type'}), 400
119
 
120
  if __name__ == '__main__':
121
  app.run(host='0.0.0.0', port=7860)
 
115
  os.remove(filepath) # Remove the file if an error occurs
116
  return jsonify({'error': str(e)}), 500
117
  else:
118
+ return jsonify({'error': f'Invalid file type: {file.filename}'}), 400
119
 
120
  if __name__ == '__main__':
121
  app.run(host='0.0.0.0', port=7860)