Spaces:
Runtime error
Runtime error
Update main.py
Browse files- app/main.py +3 -1
app/main.py
CHANGED
@@ -54,7 +54,9 @@ async def process_input(text: str):
|
|
54 |
return StreamingResponse(astreamer(generator), media_type='text/event-stream')
|
55 |
|
56 |
async def parse_body(request: Request):
|
57 |
-
data = await request.
|
|
|
|
|
58 |
return data
|
59 |
|
60 |
@app.post("/upload")
|
|
|
54 |
return StreamingResponse(astreamer(generator), media_type='text/event-stream')
|
55 |
|
56 |
async def parse_body(request: Request):
|
57 |
+
data = await request.body()
|
58 |
+
print("TYPE: " + type(data))
|
59 |
+
print(data)
|
60 |
return data
|
61 |
|
62 |
@app.post("/upload")
|