Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import hf_hub_download
|
|
4 |
|
5 |
|
6 |
def download_models(model_id):
|
7 |
-
hf_hub_download("SakshiRathi77/void-space-detection
|
8 |
return f"./{model_id}"
|
9 |
|
10 |
@spaces.GPU
|
@@ -48,9 +48,9 @@ def app():
|
|
48 |
model_path = gr.Dropdown(
|
49 |
label="Model",
|
50 |
choices=[
|
51 |
-
"
|
52 |
],
|
53 |
-
value="
|
54 |
)
|
55 |
image_size = gr.Slider(
|
56 |
label="Image Size",
|
|
|
4 |
|
5 |
|
6 |
def download_models(model_id):
|
7 |
+
hf_hub_download("SakshiRathi77/void-space-detection", filename=f"{model_id}", local_dir=f"./")
|
8 |
return f"./{model_id}"
|
9 |
|
10 |
@spaces.GPU
|
|
|
48 |
model_path = gr.Dropdown(
|
49 |
label="Model",
|
50 |
choices=[
|
51 |
+
"state_dict.pt"
|
52 |
],
|
53 |
+
value="state_dict.pt",
|
54 |
)
|
55 |
image_size = gr.Slider(
|
56 |
label="Image Size",
|