Mahinour1 commited on
Commit
bb105cf
·
1 Parent(s): c084ff7

disable websocket3

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,4 +1,9 @@
1
  import os
 
 
 
 
 
2
  import getpass
3
  from operator import itemgetter
4
  from typing import List, Dict
 
1
  import os
2
+
3
+ os.environ["CHAINLIT_DISABLE_WEBSOCKETS"] = "true"
4
+ # Also consider setting these for HF Spaces
5
+ os.environ["CHAINLIT_SERVER_PORT"] = "7860"
6
+ os.environ["CHAINLIT_SERVER_HOST"] = "0.0.0.0"
7
  import getpass
8
  from operator import itemgetter
9
  from typing import List, Dict