pvanand commited on
Commit
f47e966
·
verified ·
1 Parent(s): 69c11c4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -18,6 +18,8 @@ from langchain_core.runnables import RunnableConfig
18
  import requests
19
  import uvicorn
20
  import re
 
 
21
  app = FastAPI()
22
 
23
  app.add_middleware(
@@ -28,6 +30,8 @@ app.add_middleware(
28
  allow_headers=["*"],
29
  )
30
 
 
 
31
  class CodeExecutionResult:
32
  def __init__(self, output: str, error: str = None):
33
  self.output = output
 
18
  import requests
19
  import uvicorn
20
  import re
21
+ from fastapi.staticfiles import StaticFiles
22
+
23
  app = FastAPI()
24
 
25
  app.add_middleware(
 
30
  allow_headers=["*"],
31
  )
32
 
33
+ app.mount("/chatui", StaticFiles(directory="static/chatui", html=True), name="index")
34
+
35
  class CodeExecutionResult:
36
  def __init__(self, output: str, error: str = None):
37
  self.output = output