tree3po commited on
Commit
10f43d5
·
verified ·
1 Parent(s): 1fe767f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import os
2
- import gradio as gr
3
- '''from huggingface_hub import hf_hub_download
4
-
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
- oas = hf_hub_download(repo_id="Etched/oasis-500m", token=None, filename="oasis500m.pt")
9
- vit = hf_hub_download(repo_id="Etched/oasis-500m", token=None, filename="vit-l-20.pt")
10
- print(oas,vit)'''
11
- gr.load("models/Etched/oasis-500m").launch()
 
 
 
 
1
  import os
2
+ import huggingface_hub
 
 
3
  os.system("git clone https://github.com/etched-ai/open-oasis.git")
4
  os.system("cd open-oasis")
5
  os.system("pip install -r open-oasis/requirements.txt")
6
+ os.system("huggingface-cli login")
7
+ os.system("huggingface-cli download Etched/oasis-500m oasis500m.pt") # DiT checkpoint
8
+ 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)