Spaces:
Runtime error
Runtime error
JunchuanYu
commited on
Commit
·
54a4759
1
Parent(s):
a742b8f
Update run.py
Browse files
run.py
CHANGED
@@ -13,10 +13,10 @@ from segment_anything import SamAutomaticMaskGenerator, SamPredictor, sam_model_
|
|
13 |
import logging
|
14 |
from huggingface_hub import hf_hub_download
|
15 |
|
16 |
-
token = os.environ['HUB_TOKEN']
|
17 |
-
loc =hf_hub_download(repo_id="JunchuanYu/files_for_segmentRS", filename="utils.py",repo_type="dataset",local_dir='.',token=token)
|
18 |
-
sys.path.append(loc)
|
19 |
-
from utils import *
|
20 |
|
21 |
with gr.Blocks(theme='gradio/soft') as demo:
|
22 |
gr.Markdown(title)
|
|
|
13 |
import logging
|
14 |
from huggingface_hub import hf_hub_download
|
15 |
|
16 |
+
# token = os.environ['HUB_TOKEN']
|
17 |
+
# loc =hf_hub_download(repo_id="JunchuanYu/files_for_segmentRS", filename="utils.py",repo_type="dataset",local_dir='.',token=token)
|
18 |
+
# sys.path.append(loc)
|
19 |
+
# from utils import *
|
20 |
|
21 |
with gr.Blocks(theme='gradio/soft') as demo:
|
22 |
gr.Markdown(title)
|