Update app.py
Browse files
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)
|