Spaces:
Running
Running
Update run.py
Browse files
run.py
CHANGED
@@ -146,9 +146,11 @@ def create_app():
|
|
146 |
# Remove the temporary file
|
147 |
os.remove(file_path)
|
148 |
|
149 |
-
|
150 |
except Exception as e:
|
151 |
-
|
|
|
|
|
152 |
|
153 |
|
154 |
|
|
|
146 |
# Remove the temporary file
|
147 |
os.remove(file_path)
|
148 |
|
149 |
+
return jsonify({'sentiment': sentiment_result}), 200
|
150 |
except Exception as e:
|
151 |
+
return jsonify({'error': str(e)}), 500
|
152 |
+
|
153 |
+
return app
|
154 |
|
155 |
|
156 |
|