Commit
·
d83d687
1
Parent(s):
7bacd60
fix app
Browse files
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
#### pull files from hub
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
import os
|
| 4 |
-
yaml_file_path=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M", filename="Prithvi_100M_config.yaml")
|
| 5 |
-
checkpoint=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M", filename='Prithvi_100M.pt')
|
| 6 |
-
model_def=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M", filename='Prithvi.py')
|
| 7 |
os.system(f'cp {model_def} .')
|
| 8 |
#####
|
| 9 |
import argparse
|
|
|
|
| 1 |
#### pull files from hub
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
import os
|
| 4 |
+
yaml_file_path=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M", filename="Prithvi_100M_config.yaml", token=os.environ.get("token"))
|
| 5 |
+
checkpoint=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M", filename='Prithvi_100M.pt', token=os.environ.get("token"))
|
| 6 |
+
model_def=hf_hub_download(repo_id="ibm-nasa-geospatial/Prithvi-100M", filename='Prithvi.py', token=os.environ.get("token"))
|
| 7 |
os.system(f'cp {model_def} .')
|
| 8 |
#####
|
| 9 |
import argparse
|