sanbo commited on
Commit
9ddcb59
·
1 Parent(s): 5448b5b

update sth. at 2024-11-15 19:13:57

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -82,10 +82,11 @@ def build_interface():
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
  # 处理图像生成请求
 
82
  with gr.Tab("图像生成"):
83
  image_prompt = gr.Textbox(label="图像提示词", placeholder="描述你想生成的图像")
84
 
85
+ # 创建 Row 布局,左右分布图像
86
+ with gr.Row():
87
+ image_output_1 = gr.Image(label="服务一生成的图像", elem_id="image_1", interactive=True)
88
+ image_output_2 = gr.Image(label="服务二生成的图像", elem_id="image_2", interactive=True)
89
+
90
  image_button = gr.Button("生成图像")
91
 
92
  # 处理图像生成请求