Spaces:
Runtime error
Runtime error
Add api
Browse files
app.py
CHANGED
@@ -417,10 +417,10 @@ with block:
|
|
417 |
btn_to_ckpt = gr.Button("Convert to CKPT")
|
418 |
btn_push_ckpt = gr.Button("Push CKPT to 🤗")
|
419 |
btn_delete_ckpt = gr.Button("Delete CKPT")
|
420 |
-
btn_clone_pt.click(clone_pt, inputs=[text_pt_model_from], outputs=out_ckpt)
|
421 |
-
btn_to_ckpt.click(to_ckpt, inputs=[text_ckpt_name], outputs=out_ckpt)
|
422 |
-
btn_push_ckpt.click(push_ckpt, inputs=[text_ckpt_model_to, text_ckpt_token, text_ckpt_branch], outputs=out_ckpt)
|
423 |
-
btn_delete_ckpt.click(delete_ckpt, outputs=out_ckpt)
|
424 |
gr.Markdown(
|
425 |
"""
|
426 |
### ckpt to safetensors <br />
|
@@ -444,10 +444,10 @@ with block:
|
|
444 |
btn_to_safetensors = gr.Button("Convert to Safetensors")
|
445 |
btn_push_safetensors = gr.Button("Push Safetensors to 🤗")
|
446 |
btn_delete_safetensors = gr.Button("Delete Safetensors")
|
447 |
-
btn_download_ckpt.click(download_ckpt, inputs=[text_ckpt_url], outputs=out_safetensors)
|
448 |
-
btn_to_safetensors.click(to_safetensors, inputs=[text_safetensors_name], outputs=out_safetensors)
|
449 |
-
btn_push_safetensors.click(push_safetensors, inputs=[text_safetensors_model_to, text_safetensors_token, text_safetensors_branch], outputs=out_safetensors)
|
450 |
-
btn_delete_safetensors.click(delete_safetensors, outputs=out_safetensors)
|
451 |
gr.Markdown(
|
452 |
"""
|
453 |
### safetensors to ckpt <br />
|
|
|
417 |
btn_to_ckpt = gr.Button("Convert to CKPT")
|
418 |
btn_push_ckpt = gr.Button("Push CKPT to 🤗")
|
419 |
btn_delete_ckpt = gr.Button("Delete CKPT")
|
420 |
+
btn_clone_pt.click(clone_pt, inputs=[text_pt_model_from], outputs=out_ckpt, api_name="difpytorch2ckptclone")
|
421 |
+
btn_to_ckpt.click(to_ckpt, inputs=[text_ckpt_name], outputs=out_ckpt, api_name="difpytorch2ckptconvert")
|
422 |
+
btn_push_ckpt.click(push_ckpt, inputs=[text_ckpt_model_to, text_ckpt_token, text_ckpt_branch], outputs=out_ckpt, api_name="difpytorch2ckptpush)
|
423 |
+
btn_delete_ckpt.click(delete_ckpt, outputs=out_ckpt, api_name="difpytorch2ckptdelete)
|
424 |
gr.Markdown(
|
425 |
"""
|
426 |
### ckpt to safetensors <br />
|
|
|
444 |
btn_to_safetensors = gr.Button("Convert to Safetensors")
|
445 |
btn_push_safetensors = gr.Button("Push Safetensors to 🤗")
|
446 |
btn_delete_safetensors = gr.Button("Delete Safetensors")
|
447 |
+
btn_download_ckpt.click(download_ckpt, inputs=[text_ckpt_url], outputs=out_safetensors, api_name="difpytorch2safetensorsclone")
|
448 |
+
btn_to_safetensors.click(to_safetensors, inputs=[text_safetensors_name], outputs=out_safetensors, api_name="difpytorch2safetensorsconvert")
|
449 |
+
btn_push_safetensors.click(push_safetensors, inputs=[text_safetensors_model_to, text_safetensors_token, text_safetensors_branch], outputs=out_safetensors, api_name="difpytorch2safetensorspush")
|
450 |
+
btn_delete_safetensors.click(delete_safetensors, outputs=out_safetensors, api_name="difpytorch2safetensorsdelete")
|
451 |
gr.Markdown(
|
452 |
"""
|
453 |
### safetensors to ckpt <br />
|