Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import os
|
| 2 |
-
import huggingface_hub
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
os.system("cd open-oasis")
|
| 5 |
os.system("pip install -r open-oasis/requirements.txt")
|
| 6 |
os.system("huggingface-cli login")
|
|
@@ -9,4 +11,4 @@ os.system("huggingface-cli download Etched/oasis-500m vit-l-20.pt")
|
|
| 9 |
#from huggingface_hub import hf_hub_download
|
| 10 |
#oas = hf_hub_download(repo_id="Etched/oasis-500m", filename="oasis500m.pt")
|
| 11 |
#vit = hf_hub_download(repo_id="Etched/oasis-500m", filename="vit-l-20.pt")
|
| 12 |
-
#print(oas,vit)
|
|
|
|
| 1 |
import os
|
| 2 |
+
#import huggingface_hub
|
| 3 |
+
from huggingface_hub import snapshot_download
|
| 4 |
+
from open_oasis_master import generate
|
| 5 |
+
'''os.system("git clone https://github.com/etched-ai/open-oasis.git")
|
| 6 |
os.system("cd open-oasis")
|
| 7 |
os.system("pip install -r open-oasis/requirements.txt")
|
| 8 |
os.system("huggingface-cli login")
|
|
|
|
| 11 |
#from huggingface_hub import hf_hub_download
|
| 12 |
#oas = hf_hub_download(repo_id="Etched/oasis-500m", filename="oasis500m.pt")
|
| 13 |
#vit = hf_hub_download(repo_id="Etched/oasis-500m", filename="vit-l-20.pt")
|
| 14 |
+
#print(oas,vit)'''
|