Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import os, gdown, gc
|
2 |
import numpy as np
|
3 |
import gradio as gr
|
@@ -252,7 +255,7 @@ block = gr.Blocks()
|
|
252 |
with block:
|
253 |
gr.Markdown(
|
254 |
"""
|
255 |
-
## 🚨 Please first click delete all button 🚨 Thanks to 🤗 ❤ Now with CPU Upgrade! 🎉 <a
|
256 |
🐣 Please follow me for new updates <a href="https://twitter.com/camenduru">https://twitter.com/camenduru</a>
|
257 |
""")
|
258 |
with gr.Row().style(equal_height=True):
|
@@ -548,5 +551,4 @@ with block:
|
|
548 |
btn_to_swap_ckpt.click(swap_ckpt_vae, inputs=[text_swap_ckpt_name], outputs=out_swap_ckpt)
|
549 |
btn_push_swap_ckpt.click(push_ckpt, inputs=[text_swap_ckpt_model_to, text_swap_ckpt_token, text_swap_ckpt_branch], outputs=out_swap_ckpt)
|
550 |
btn_delete_swap_ckpt.click(delete_ckpt, outputs=out_swap_ckpt)
|
551 |
-
|
552 |
-
block.launch()
|
|
|
1 |
+
#@title ♻
|
2 |
+
!pip install -q gradio==3.9 jax[cpu]==0.4.4 flax==0.6.6 diffusers==0.13.1 accelerate==0.16.0 transformers==4.26.1 huggingface-hub==0.11.0 torch==1.13.1 safetensors==0.2.8 gdown==4.6.4 pytorch_lightning ftfy OmegaConf -U
|
3 |
+
|
4 |
import os, gdown, gc
|
5 |
import numpy as np
|
6 |
import gradio as gr
|
|
|
255 |
with block:
|
256 |
gr.Markdown(
|
257 |
"""
|
258 |
+
## 🚨 Please first click delete all button 🚨 Thanks to 🤗 ❤ Now with CPU Upgrade! 🎉 <a style="display:inline-block" href="https://github.com/camenduru/converter-colab" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" style="margin-bottom: 0px; margin-top: 0px;"></a>
|
259 |
🐣 Please follow me for new updates <a href="https://twitter.com/camenduru">https://twitter.com/camenduru</a>
|
260 |
""")
|
261 |
with gr.Row().style(equal_height=True):
|
|
|
551 |
btn_to_swap_ckpt.click(swap_ckpt_vae, inputs=[text_swap_ckpt_name], outputs=out_swap_ckpt)
|
552 |
btn_push_swap_ckpt.click(push_ckpt, inputs=[text_swap_ckpt_model_to, text_swap_ckpt_token, text_swap_ckpt_branch], outputs=out_swap_ckpt)
|
553 |
btn_delete_swap_ckpt.click(delete_ckpt, outputs=out_swap_ckpt)
|
554 |
+
block.launch(share=True, inline=False, debug=True)
|
|