Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import httpcore
|
| 2 |
setattr(httpcore, 'SyncHTTPTransport', 'AsyncHTTPProxy')
|
| 3 |
|
| 4 |
-
#Beta3: 加入了一些常用的模型,以及將分享按鈕
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
from googletrans import Translator
|
|
@@ -17,8 +17,10 @@ models =[
|
|
| 17 |
"Yntec/Genuine",
|
| 18 |
"Yntec/Abased",
|
| 19 |
"Yntec/CuteFurry",
|
|
|
|
| 20 |
"Yntec/incha_re_zoro",
|
| 21 |
"Yntec/InsaneM3U",
|
|
|
|
| 22 |
"digiplay/2K-VAE",
|
| 23 |
"digiplay/ya3_VAE",
|
| 24 |
"digiplay/ya3p_VAE",
|
|
@@ -71,7 +73,7 @@ demo = gr.Interface(
|
|
| 71 |
gr.Textbox(label="請輸入提示語 Please input a prompt"),
|
| 72 |
gr.Dropdown(label="選擇模型 Choose a model", choices=models)
|
| 73 |
],
|
| 74 |
-
outputs=[gr.Image(type="pil", label=f"img-{i+1}", show_share_button =
|
| 75 |
title="Text-to-Image with Google Translation",
|
| 76 |
description="<center>Supports any languages, as long as Google supports them 😄<br>"
|
| 77 |
"Special Thanks : Yntec 🤗 and Every cool developers and artists and you on Huggingface.</center>"
|
|
|
|
| 1 |
import httpcore
|
| 2 |
setattr(httpcore, 'SyncHTTPTransport', 'AsyncHTTPProxy')
|
| 3 |
|
| 4 |
+
#Beta3-2025: 加入了一些常用的模型,以及將分享按鈕開啟
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
from googletrans import Translator
|
|
|
|
| 17 |
"Yntec/Genuine",
|
| 18 |
"Yntec/Abased",
|
| 19 |
"Yntec/CuteFurry",
|
| 20 |
+
"Yntec/Isabelia",
|
| 21 |
"Yntec/incha_re_zoro",
|
| 22 |
"Yntec/InsaneM3U",
|
| 23 |
+
"digiplay/2K",
|
| 24 |
"digiplay/2K-VAE",
|
| 25 |
"digiplay/ya3_VAE",
|
| 26 |
"digiplay/ya3p_VAE",
|
|
|
|
| 73 |
gr.Textbox(label="請輸入提示語 Please input a prompt"),
|
| 74 |
gr.Dropdown(label="選擇模型 Choose a model", choices=models)
|
| 75 |
],
|
| 76 |
+
outputs=[gr.Image(type="pil", label=f"img-{i+1}", show_share_button = True) for i in range(3)], # 顯示三張圖片 Display three images
|
| 77 |
title="Text-to-Image with Google Translation",
|
| 78 |
description="<center>Supports any languages, as long as Google supports them 😄<br>"
|
| 79 |
"Special Thanks : Yntec 🤗 and Every cool developers and artists and you on Huggingface.</center>"
|