Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,7 @@ async def receive_form_data(request: Request):
|
|
219 |
print("Received form data:", form_data)
|
220 |
|
221 |
# Send back the unique id to the frontend
|
222 |
-
return JSONResponse({"id": a})
|
223 |
|
224 |
@app.post("/chat/")
|
225 |
async def chat(request: MessageRequest):
|
|
|
219 |
print("Received form data:", form_data)
|
220 |
|
221 |
# Send back the unique id to the frontend
|
222 |
+
return JSONResponse({"id": a['id']})
|
223 |
|
224 |
@app.post("/chat/")
|
225 |
async def chat(request: MessageRequest):
|