parent b46f6918
......@@ -55,6 +55,12 @@ def create_app() -> FastAPI:
print("OpenAI Service Available:", container.openai_service.is_available())
print("Agent Service Available:", container.agent_service.is_available())
from fastapi.responses import FileResponse
@app.get("/audio-recorder")
async def serve_audio_recorder():
return FileResponse("static/audio-recorder.html")
@app.post("/chat")
async def chat_handler(
file: Optional[UploadFile] = File(None),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment