Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ from fastapi import FastAPI, UploadFile, File
|
|
2 |
from fastapi.middleware.cors import CORSMiddleware
|
3 |
from huggingface_hub import upload_file
|
4 |
import os
|
5 |
-
|
|
|
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# CORS setup to allow requests from your frontend
|
|
|
2 |
from fastapi.middleware.cors import CORSMiddleware
|
3 |
from huggingface_hub import upload_file
|
4 |
import os
|
5 |
+
import os
|
6 |
+
import zipfile
|
7 |
+
import tempfile # ✅ Add this!
|
8 |
app = FastAPI()
|
9 |
|
10 |
# CORS setup to allow requests from your frontend
|