Spaces:
Runtime error
Runtime error
Commit ·
f577ee8
1
Parent(s): 01dd240
Update app1.py
Browse files
app1.py
CHANGED
|
@@ -50,22 +50,12 @@ def convert_checkpoint(url, name, hf_token, image_size, scheduler_type, use_half
|
|
| 50 |
)
|
| 51 |
|
| 52 |
|
| 53 |
-
def display_instructions(info):
|
| 54 |
-
text = f"{name} will be used to create a repo and upload the converted model. Please make sure the model doesn't already exist."
|
| 55 |
-
|
| 56 |
-
return text
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
except Exception as e:
|
| 60 |
-
output = str(e)
|
| 61 |
|
| 62 |
-
return output
|
| 63 |
|
| 64 |
iface = gr.Interface(
|
| 65 |
fn=convert_checkpoint,
|
| 66 |
inputs=[
|
| 67 |
gr.inputs.Textbox(label="URL"),
|
| 68 |
-
gr.inputs.Textbox(label="info"),
|
| 69 |
gr.inputs.Textbox(label="Name"),
|
| 70 |
gr.inputs.Textbox(label="Hugging Face API Token"),
|
| 71 |
gr.inputs.Radio(label="Image Size", choices=["512", "768"]),
|
|
|
|
| 50 |
)
|
| 51 |
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
|
|
|
| 54 |
|
| 55 |
iface = gr.Interface(
|
| 56 |
fn=convert_checkpoint,
|
| 57 |
inputs=[
|
| 58 |
gr.inputs.Textbox(label="URL"),
|
|
|
|
| 59 |
gr.inputs.Textbox(label="Name"),
|
| 60 |
gr.inputs.Textbox(label="Hugging Face API Token"),
|
| 61 |
gr.inputs.Radio(label="Image Size", choices=["512", "768"]),
|