Spaces:
Sleeping
Sleeping
Indrajit Ari commited on
Commit ·
12c4b57
1
Parent(s): 4e88441
fix: restore missing FastAPI and Typing imports in app_hf.py
Browse files- backend/app_hf.py +8 -1
backend/app_hf.py
CHANGED
|
@@ -13,8 +13,15 @@ import uuid
|
|
| 13 |
import asyncio
|
| 14 |
import logging
|
| 15 |
import sys
|
| 16 |
-
import os
|
| 17 |
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# Add current directory to path so relative imports work without package structure
|
| 19 |
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
| 20 |
|
|
|
|
| 13 |
import asyncio
|
| 14 |
import logging
|
| 15 |
import sys
|
|
|
|
| 16 |
from pathlib import Path
|
| 17 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 18 |
+
from typing import Any, Dict
|
| 19 |
+
|
| 20 |
+
from fastapi import FastAPI, UploadFile, File, HTTPException, WebSocket, WebSocketDisconnect
|
| 21 |
+
from fastapi.responses import FileResponse, JSONResponse
|
| 22 |
+
from fastapi.staticfiles import StaticFiles
|
| 23 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 24 |
+
|
| 25 |
# Add current directory to path so relative imports work without package structure
|
| 26 |
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
| 27 |
|