rohan13 commited on
Commit
f48c97f
1 Parent(s): 34bef83

adding gevent

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +3 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from main import run
5
 
6
  app = Flask(__name__)
7
  app.config['SECRET_KEY'] = 'secret!'
8
- socketio = SocketIO(app, cors_allowed_origins="*")
9
  cors = CORS(app)
10
 
11
  @app.route('/')
 
5
 
6
  app = Flask(__name__)
7
  app.config['SECRET_KEY'] = 'secret!'
8
+ socketio = SocketIO(app, cors_allowed_origins="*", async_mode='gevent')
9
  cors = CORS(app)
10
 
11
  @app.route('/')
requirements.txt CHANGED
@@ -5,4 +5,6 @@ PyPDF2
5
  openai
6
  flask
7
  flask-socketio
8
- flask-cors
 
 
 
5
  openai
6
  flask
7
  flask-socketio
8
+ flask-cors
9
+ gevent
10
+ gevent-websocket