Androidonnxfork commited on
Commit
0ee720e
1 Parent(s): f4bc47f

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +6 -2
app1.py CHANGED
@@ -9,8 +9,10 @@ from huggingface_hub import HfApi, create_repo
9
  def convert_checkpoint(url, name,repo_id, hf_token ,visibility ,image_size, scheduler_type, use_half):
10
  try:
11
  # Download the file
12
- os.system(f"wget {url} --content-disposition -O {name}.safetensors")
13
-
 
 
14
 
15
  # Construct the checkpoint path and dump path
16
  checkpoint_path = f"{name}.safetensors"
@@ -40,6 +42,8 @@ def convert_checkpoint(url, name,repo_id, hf_token ,visibility ,image_size, sche
40
 
41
  # Log in to your Hugging Face account
42
  os.system(f"huggingface-cli login --token {hf_token}")
 
 
43
 
44
  # Create a repository
45
  api = HfApi()
 
9
  def convert_checkpoint(url, name,repo_id, hf_token ,visibility ,image_size, scheduler_type, use_half):
10
  try:
11
  # Download the file
12
+ os.system(f"wget -q {url} --content-disposition -O {name}.safetensors")
13
+
14
+ time.sleep(5)
15
+ print(Download successful)
16
 
17
  # Construct the checkpoint path and dump path
18
  checkpoint_path = f"{name}.safetensors"
 
42
 
43
  # Log in to your Hugging Face account
44
  os.system(f"huggingface-cli login --token {hf_token}")
45
+
46
+
47
 
48
  # Create a repository
49
  api = HfApi()