wondervictor commited on
Commit
f562b42
·
verified ·
1 Parent(s): 880417a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -33,4 +33,18 @@ with gr.Blocks(css="style.css") as demo:
33
  create_demo_canny(model.process_canny)
34
 
35
  if __name__ == "__main__":
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  demo.launch(share=False)
 
33
  create_demo_canny(model.process_canny)
34
 
35
  if __name__ == "__main__":
36
+ ckpt_folder = './checkpoints'
37
+ t5_folder = os.path.join(ckpt_folder, "flan-t5-xl/flan-t5-xl")
38
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="config.json", local_dir=t5_folder)
39
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="pytorch_model-00001-of-00002.bin", local_dir=t5_folder)
40
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="pytorch_model-00002-of-00002.bin", local_dir=t5_folder)
41
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="pytorch_model.bin.index.json", local_dir=t5_folder)
42
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="special_tokens_map.json", local_dir=t5_folder)
43
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="spiece.model", local_dir=t5_folder)
44
+ hf_hub_download(repo_id="google/flan-t5-xl", filename="tokenizer_config.json", local_dir=t5_folder)
45
+
46
+ hf_hub_download(repo_id="lllyasviel/Annotators", filename="dpt_hybrid-midas-501f0c75.pt", local_dir=ckpt_folder)
47
+
48
+ hf_hub_download(repo_id="wondervictor/ControlAR", filename="canny_MR.safetensors", local_dir=ckpt_folder)
49
+ hf_hub_download(repo_id="wondervictor/ControlAR", filename="depth_MR.safetensors", local_dir=ckpt_folder)
50
  demo.launch(share=False)