Spaces:
Sleeping
Sleeping
Stanislav
commited on
Commit
·
ac6e22b
1
Parent(s):
e85fbe3
feat: gitkeeps, no create two folders
Browse files- .gitignore +0 -1
- outputs/.gitkeep +0 -0
- run_fastapi.py +0 -4
- uploads/.gitkeep +0 -0
.gitignore
CHANGED
@@ -15,4 +15,3 @@ __pycache__/
|
|
15 |
|
16 |
weights/sam_vit_b_01ec64.pth
|
17 |
assets/
|
18 |
-
outputs/
|
|
|
15 |
|
16 |
weights/sam_vit_b_01ec64.pth
|
17 |
assets/
|
|
outputs/.gitkeep
ADDED
File without changes
|
run_fastapi.py
CHANGED
@@ -19,10 +19,6 @@ from huggingface_hub import hf_hub_download
|
|
19 |
app = FastAPI()
|
20 |
init_db()
|
21 |
|
22 |
-
# --- Ensure necessary folders exist
|
23 |
-
os.makedirs("uploads", exist_ok=True)
|
24 |
-
os.makedirs("outputs", exist_ok=True)
|
25 |
-
|
26 |
# --- Static and templates
|
27 |
app.mount("/outputs", StaticFiles(directory="outputs"), name="outputs")
|
28 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
|
|
19 |
app = FastAPI()
|
20 |
init_db()
|
21 |
|
|
|
|
|
|
|
|
|
22 |
# --- Static and templates
|
23 |
app.mount("/outputs", StaticFiles(directory="outputs"), name="outputs")
|
24 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
uploads/.gitkeep
ADDED
File without changes
|