Spaces:
Runtime error
Runtime error
Androidonnxfork
commited on
Commit
•
26e2bde
1
Parent(s):
f57068f
Update app1.py
Browse files
app1.py
CHANGED
@@ -3,6 +3,10 @@ import time
|
|
3 |
import os
|
4 |
from huggingface_hub import HfApi, create_repo
|
5 |
|
|
|
|
|
|
|
|
|
6 |
def convert_checkpoint(url, name, hf_token, image_size, scheduler_type, use_half):
|
7 |
try:
|
8 |
# Download the file
|
@@ -70,4 +74,4 @@ iface = gr.Interface(
|
|
70 |
],
|
71 |
outputs=gr.outputs.Textbox()
|
72 |
)
|
73 |
-
iface.launch()
|
|
|
3 |
import os
|
4 |
from huggingface_hub import HfApi, create_repo
|
5 |
|
6 |
+
|
7 |
+
label= "Name of the model will be used to create a repo for converted model , make sure you don't have existing model"
|
8 |
+
|
9 |
+
|
10 |
def convert_checkpoint(url, name, hf_token, image_size, scheduler_type, use_half):
|
11 |
try:
|
12 |
# Download the file
|
|
|
74 |
],
|
75 |
outputs=gr.outputs.Textbox()
|
76 |
)
|
77 |
+
iface.launch(label)
|