Spaces:
Runtime error
Runtime error
Commit
·
f933a72
1
Parent(s):
0e95c6d
Update app.py
Browse files
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.
|
| 101 |
-
with gr.
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 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.
|
| 119 |
-
with gr.
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
with gr.
|
| 131 |
-
|
| 132 |
-
|
|
|
|
| 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():
|