WebashalarForML commited on
Commit
3887221
·
verified ·
1 Parent(s): c222ad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ from gradio_client import Client, handle_file
21
 
22
  app = Flask(__name__)
23
  app.config['SECRET_KEY'] = 'your-secret-key-here'
24
- # Change this line:
25
- socketio = SocketIO(app, cors_allowed_origins="*", async_mode='eventlet')
26
 
27
  # --- CONFIG ---
28
  BASE_DIR = os.path.dirname(os.path.abspath(__file__))
 
21
 
22
  app = Flask(__name__)
23
  app.config['SECRET_KEY'] = 'your-secret-key-here'
24
+ app.config['SESSION_TYPE'] = 'filesystem'
25
+ socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading', manage_session=False)
26
 
27
  # --- CONFIG ---
28
  BASE_DIR = os.path.dirname(os.path.abspath(__file__))