yasserrmd commited on
Commit
4658bb4
·
verified ·
1 Parent(s): b64bb23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -29,16 +29,12 @@ class TextInput(BaseModel):
29
  @app.get("/")
30
  async def serve_homepage():
31
  """Serve the chat interface HTML."""
32
- with open("static/conv.html", "r") as f:
33
- return Response(content=f.read(), media_type="text/html")
34
-
35
-
36
-
37
 
38
  @app.get("/conv/")
39
  async def serve_convpage():
40
  """Serve the chat interface HTML."""
41
- return FileResponse("static/index.html")
42
 
43
  @app.post("/stt/")
44
  async def speech_to_text(file: UploadFile = File(...)):
 
29
  @app.get("/")
30
  async def serve_homepage():
31
  """Serve the chat interface HTML."""
32
+ return FileResponse("static/index.html")
 
 
 
 
33
 
34
  @app.get("/conv/")
35
  async def serve_convpage():
36
  """Serve the chat interface HTML."""
37
+ return FileResponse("static/conv.html")
38
 
39
  @app.post("/stt/")
40
  async def speech_to_text(file: UploadFile = File(...)):