Update app.py
Browse files
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 |
-
|
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/
|
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(...)):
|