Upload folder using huggingface_hub
Browse files- hf_space/app.py +4 -2
hf_space/app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
from ormbg import ORMBG
|
7 |
from PIL import Image
|
8 |
|
9 |
-
model_path = "
|
10 |
|
11 |
# Load the model globally but don't send to device yet
|
12 |
net = ORMBG()
|
@@ -85,4 +85,6 @@ demo = gr.Interface(
|
|
85 |
)
|
86 |
|
87 |
if __name__ == "__main__":
|
88 |
-
demo.launch(
|
|
|
|
|
|
6 |
from ormbg import ORMBG
|
7 |
from PIL import Image
|
8 |
|
9 |
+
model_path = "../models/ormbg.pth"
|
10 |
|
11 |
# Load the model globally but don't send to device yet
|
12 |
net = ORMBG()
|
|
|
85 |
)
|
86 |
|
87 |
if __name__ == "__main__":
|
88 |
+
demo.launch(
|
89 |
+
share=False, root_path="../", allowed_paths=["../hf_space", "../models"]
|
90 |
+
)
|