bitsinthesky commited on
Commit
c4bdf25
·
verified ·
1 Parent(s): 42d93d8

Replace gradio with FastAPI to fix transitive dep crashes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -194,7 +194,7 @@ async def health():
194
 
195
 
196
  @app.post("/process")
197
- def process(file: UploadFile = File(...)):
198
  if not file.filename or not file.filename.endswith(".zip"):
199
  raise HTTPException(status_code=400, detail="Please upload a .zip file.")
200
 
 
194
 
195
 
196
  @app.post("/process")
197
+ async def process(file: UploadFile = File(...)):
198
  if not file.filename or not file.filename.endswith(".zip"):
199
  raise HTTPException(status_code=400, detail="Please upload a .zip file.")
200