sreepathi-ravikumar commited on
Commit
26b72ea
·
verified ·
1 Parent(s): 1143567

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ from flask import Flask, request, jsonify
2
  from flask_cors import CORS
3
  from text2generation import generate_long_answer
4
 
5
- app = Flask(_name_)
6
  CORS(app)
7
 
8
  @app.route('/health')
@@ -27,5 +27,5 @@ def ask_question():
27
  except Exception as e:
28
  return jsonify({"error": str(e)}), 500
29
 
30
- if _name_ == '_main_':
31
  app.run(host='0.0.0.0', port=7860)
 
2
  from flask_cors import CORS
3
  from text2generation import generate_long_answer
4
 
5
+ app = Flask(__name__)
6
  CORS(app)
7
 
8
  @app.route('/health')
 
27
  except Exception as e:
28
  return jsonify({"error": str(e)}), 500
29
 
30
+ if __name__ == '__main__':
31
  app.run(host='0.0.0.0', port=7860)