Spaces:
Runtime error
Runtime error
revert
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
|
|
1 |
import os
|
2 |
from huggingface_hub import hf_hub_download
|
3 |
-
config_path=hf_hub_download(repo_id="
|
4 |
-
ckpt=hf_hub_download(repo_id="
|
|
|
|
|
5 |
|
6 |
import argparse
|
7 |
from mmcv import Config
|
@@ -217,4 +220,4 @@ with gr.Blocks() as demo:
|
|
217 |
cache_examples=True,
|
218 |
)
|
219 |
|
220 |
-
demo.launch()
|
|
|
1 |
+
######### pull files
|
2 |
import os
|
3 |
from huggingface_hub import hf_hub_download
|
4 |
+
config_path=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M-sen1floods11", filename="sen1floods11_Prithvi_100M.py", token=os.environ.get("token"))
|
5 |
+
ckpt=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M-sen1floods11", filename='sen1floods11_Prithvi_100M.pth', token=os.environ.get("token"))
|
6 |
+
##########
|
7 |
+
|
8 |
|
9 |
import argparse
|
10 |
from mmcv import Config
|
|
|
220 |
cache_examples=True,
|
221 |
)
|
222 |
|
223 |
+
demo.launch()
|