mitulagr2 commited on
Commit
0b8a679
1 Parent(s): 6a3901a

Update main.py

Browse files
Files changed (1) hide show
  1. 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.json()
 
 
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")