Update app.py
Browse files
app.py
CHANGED
@@ -27,12 +27,12 @@ class TextInput(BaseModel):
|
|
27 |
@app.get("/")
|
28 |
async def serve_homepage():
|
29 |
"""Serve the chat interface HTML."""
|
30 |
-
with open("static/
|
31 |
return Response(content=f.read(), media_type="text/html")
|
32 |
@app.get("/conv/")
|
33 |
async def serve_convpage():
|
34 |
"""Serve the chat interface HTML."""
|
35 |
-
with open("static/
|
36 |
return Response(content=f.read(), media_type="text/html")
|
37 |
|
38 |
@app.post("/stt/")
|
|
|
27 |
@app.get("/")
|
28 |
async def serve_homepage():
|
29 |
"""Serve the chat interface HTML."""
|
30 |
+
with open("static/conv.html", "r") as f:
|
31 |
return Response(content=f.read(), media_type="text/html")
|
32 |
@app.get("/conv/")
|
33 |
async def serve_convpage():
|
34 |
"""Serve the chat interface HTML."""
|
35 |
+
with open("static/index.html", "r") as f:
|
36 |
return Response(content=f.read(), media_type="text/html")
|
37 |
|
38 |
@app.post("/stt/")
|