Androidonnxfork commited on
Commit
01dd240
·
1 Parent(s): deb501d

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +1 -3
app1.py CHANGED
@@ -8,8 +8,6 @@ def convert_checkpoint(url, name, hf_token, image_size, scheduler_type, use_half
8
  # Download the file
9
  os.system(f"wget {url} --content-disposition -O {name}.safetensors")
10
 
11
- # Introduce a delay of 30 seconds
12
- time.sleep(30)
13
 
14
  # Construct the checkpoint path and dump path
15
  checkpoint_path = f"{name}.safetensors"
@@ -34,7 +32,7 @@ def convert_checkpoint(url, name, hf_token, image_size, scheduler_type, use_half
34
  result = os.system(" ".join(cmd))
35
  output = result
36
 
37
- # Clean up downloaded file
38
  os.remove(checkpoint_path)
39
 
40
  # Log in to your Hugging Face account
 
8
  # Download the file
9
  os.system(f"wget {url} --content-disposition -O {name}.safetensors")
10
 
 
 
11
 
12
  # Construct the checkpoint path and dump path
13
  checkpoint_path = f"{name}.safetensors"
 
32
  result = os.system(" ".join(cmd))
33
  output = result
34
 
35
+
36
  os.remove(checkpoint_path)
37
 
38
  # Log in to your Hugging Face account