Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -501,7 +501,6 @@ async def chat(request: ChatRequest):
|
|
| 501 |
except Exception as e:
|
| 502 |
raise HTTPException(status_code=500, detail=str(e))
|
| 503 |
|
| 504 |
-
@app.post("/api/spaces/{space_id}/upload")
|
| 505 |
def process_heavy_files_background(space_id: str, saved_file_paths: List[Dict]):
|
| 506 |
"""Runs in the background so the HTTP request doesn't timeout"""
|
| 507 |
try:
|
|
|
|
| 501 |
except Exception as e:
|
| 502 |
raise HTTPException(status_code=500, detail=str(e))
|
| 503 |
|
|
|
|
| 504 |
def process_heavy_files_background(space_id: str, saved_file_paths: List[Dict]):
|
| 505 |
"""Runs in the background so the HTTP request doesn't timeout"""
|
| 506 |
try:
|