Spaces:
Running
on
Zero
Running
on
Zero
download all no thread
Browse files
app.py
CHANGED
@@ -1718,18 +1718,22 @@ if os.path.exists("/hf_token.txt"):
|
|
1718 |
os.environ["HF_ACCESS_TOKEN"] = open("/hf_token.txt").read().strip()
|
1719 |
|
1720 |
|
1721 |
-
demo.launch(share=True)
|
1722 |
-
|
1723 |
if DOWNLOAD_ALL_MODELS_DATASETS:
|
1724 |
from ncut_pytorch.backbone import download_all_models
|
1725 |
-
t1 = threading.Thread(target=download_all_models).start()
|
1726 |
-
t1.join()
|
1727 |
-
t3 = threading.Thread(target=download_all_datasets).start()
|
1728 |
-
t3.join()
|
|
|
|
|
1729 |
|
1730 |
from ncut_pytorch.backbone_text import download_all_models
|
1731 |
-
t2 = threading.Thread(target=download_all_models).start()
|
1732 |
-
t2.join()
|
|
|
|
|
|
|
|
|
1733 |
|
1734 |
|
1735 |
# # %%
|
|
|
1718 |
os.environ["HF_ACCESS_TOKEN"] = open("/hf_token.txt").read().strip()
|
1719 |
|
1720 |
|
|
|
|
|
1721 |
if DOWNLOAD_ALL_MODELS_DATASETS:
|
1722 |
from ncut_pytorch.backbone import download_all_models
|
1723 |
+
# t1 = threading.Thread(target=download_all_models).start()
|
1724 |
+
# t1.join()
|
1725 |
+
# t3 = threading.Thread(target=download_all_datasets).start()
|
1726 |
+
# t3.join()
|
1727 |
+
download_all_models()
|
1728 |
+
download_all_datasets()
|
1729 |
|
1730 |
from ncut_pytorch.backbone_text import download_all_models
|
1731 |
+
# t2 = threading.Thread(target=download_all_models).start()
|
1732 |
+
# t2.join()
|
1733 |
+
download_all_models()
|
1734 |
+
|
1735 |
+
demo.launch(share=True)
|
1736 |
+
|
1737 |
|
1738 |
|
1739 |
# # %%
|