Spaces:
Sleeping
Sleeping
sanbo
commited on
Commit
·
5448b5b
1
Parent(s):
e26becc
update sth. at 2024-11-15 19:05:52
Browse files
app.py
CHANGED
@@ -81,8 +81,11 @@ def build_interface():
|
|
81 |
# 图像生成模块
|
82 |
with gr.Tab("图像生成"):
|
83 |
image_prompt = gr.Textbox(label="图像提示词", placeholder="描述你想生成的图像")
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
86 |
image_button = gr.Button("生成图像")
|
87 |
|
88 |
# 处理图像生成请求
|
|
|
81 |
# 图像生成模块
|
82 |
with gr.Tab("图像生成"):
|
83 |
image_prompt = gr.Textbox(label="图像提示词", placeholder="描述你想生成的图像")
|
84 |
+
|
85 |
+
# 更新图像显示方式:使用 scale 来调整图像大小
|
86 |
+
image_output_1 = gr.Image(label="服务一生成的图像", elem_id="image_1", interactive=True).scale(320)
|
87 |
+
image_output_2 = gr.Image(label="服务二生成的图像", elem_id="image_2", interactive=True).scale(320)
|
88 |
+
|
89 |
image_button = gr.Button("生成图像")
|
90 |
|
91 |
# 处理图像生成请求
|