jianghuyihei commited on
Commit
64412fd
·
1 Parent(s): 5e6e620
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +6 -1
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -15,6 +15,11 @@ import uuid
15
  import yaml
16
  import os
17
 
 
 
 
 
 
18
  lock = threading.Lock()
19
  app = FastAPI()
20
 
@@ -350,7 +355,7 @@ html_template = """
350
  {{ script}}
351
  </script>
352
  <script>
353
- const socket = new WebSocket('wss://0.0.0.0:7890/ws');
354
 
355
  socket.addEventListener('open', function (event) {
356
  const userId = document.getElementById("user_id").value;
 
15
  import yaml
16
  import os
17
 
18
+ with open('/Users/jianghuyihei/code/MultiResearchAgent/config.yaml', 'r') as file:
19
+ config = yaml.safe_load(file)
20
+ for key, value in config.items():
21
+ os.environ[key] = str(value)
22
+
23
  lock = threading.Lock()
24
  app = FastAPI()
25
 
 
355
  {{ script}}
356
  </script>
357
  <script>
358
+ const socket = new WebSocket('wss://damo-nlp-sg-coi-agent.hf.space/ws');
359
 
360
  socket.addEventListener('open', function (event) {
361
  const userId = document.getElementById("user_id").value;