Geek7 commited on
Commit
6a1099e
1 Parent(s): b5c8a42

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +3 -3
myapp.py CHANGED
@@ -3,8 +3,8 @@ from flask_cors import CORS
3
  from gradio_client import Client
4
  from all_models import models # Import the models list
5
 
6
- app = Flask(__name__)
7
- CORS(app)
8
 
9
  # Initialize Gradio Client with the first model in the list
10
  client = Client("Geek7/mdztxi2")
@@ -42,4 +42,4 @@ def predict():
42
  return jsonify({"error": str(e)}), 500
43
 
44
  if __name__ == '__main__':
45
- app.run(debug=True)
 
3
  from gradio_client import Client
4
  from all_models import models # Import the models list
5
 
6
+ myapp = Flask(__name__)
7
+ CORS(myapp)
8
 
9
  # Initialize Gradio Client with the first model in the list
10
  client = Client("Geek7/mdztxi2")
 
42
  return jsonify({"error": str(e)}), 500
43
 
44
  if __name__ == '__main__':
45
+ myapp.run(debug=True)