ChenyangSi commited on
Commit
f933a72
·
1 Parent(s): 0e95c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -31
app.py CHANGED
@@ -97,39 +97,39 @@ options = ['SD1.4', 'SD1.5', 'SD2.1']
97
  with block:
98
  gr.Markdown("SD vs. FreeU.")
99
  with gr.Row():
100
- with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
101
- with gr.Column():
102
- text = gr.Textbox(
103
- label="Enter your prompt",
104
- show_label=False,
105
- max_lines=1,
106
- placeholder="Enter your prompt",
107
- container=False,
108
- )
109
- btn = gr.Button("Generate image", scale=0)
110
-
111
- with gr.Row():
112
- with gr.Column(min_width=256) as c1:
113
- image_1 = gr.Image(interactive=False)
114
- image_1_label = gr.Markdown("SD")
115
  with gr.Row():
116
-
 
 
117
 
118
- with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
119
- with gr.Column():
120
- text = gr.Textbox(
121
- label="Enter your prompt",
122
- show_label=False,
123
- max_lines=1,
124
- placeholder="Enter your prompt",
125
- container=False,
126
- )
127
- btn = gr.Button("Generate image", scale=0)
128
-
129
- with gr.Row():
130
- with gr.Column(min_width=256) as c2:
131
- image_2 = gr.Image(interactive=False)
132
- image_2_label = gr.Markdown("FreeU")
 
133
 
134
 
135
  # with gr.Column():
 
97
  with block:
98
  gr.Markdown("SD vs. FreeU.")
99
  with gr.Row():
100
+ with gr.Group():
101
+ with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
102
+ with gr.Column():
103
+ text = gr.Textbox(
104
+ label="Enter your prompt",
105
+ show_label=False,
106
+ max_lines=1,
107
+ placeholder="Enter your prompt",
108
+ container=False,
109
+ )
110
+ btn = gr.Button("Generate image", scale=0)
111
+
 
 
 
112
  with gr.Row():
113
+ with gr.Column(min_width=256) as c1:
114
+ image_1 = gr.Image(interactive=False)
115
+ image_1_label = gr.Markdown("SD")
116
 
117
+ with gr.Group():
118
+ with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
119
+ with gr.Column():
120
+ text = gr.Textbox(
121
+ label="Enter your prompt",
122
+ show_label=False,
123
+ max_lines=1,
124
+ placeholder="Enter your prompt",
125
+ container=False,
126
+ )
127
+ btn = gr.Button("Generate image", scale=0)
128
+
129
+ with gr.Row():
130
+ with gr.Column(min_width=256) as c2:
131
+ image_2 = gr.Image(interactive=False)
132
+ image_2_label = gr.Markdown("FreeU")
133
 
134
 
135
  # with gr.Column():