hatimanees commited on
Commit
c7c9cac
·
verified ·
1 Parent(s): 748ac91

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +4 -2
run.py CHANGED
@@ -146,9 +146,11 @@ def create_app():
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
 
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