Spaces:
Paused
Paused
Replace gradio with FastAPI to fix transitive dep crashes
Browse files
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 |
|