Spaces:
Runtime error
Runtime error
Commit
·
afd35b0
1
Parent(s):
b8b3bb8
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,15 +97,18 @@ options = ['SD1.4', 'SD1.5', 'SD2.1']
|
|
| 97 |
with block:
|
| 98 |
gr.Markdown("SD vs. FreeU.")
|
| 99 |
with gr.Group():
|
| 100 |
-
with gr.Row(
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Group():
|
|
@@ -118,7 +121,7 @@ with block:
|
|
| 118 |
# placeholder="Enter your prompt",
|
| 119 |
# container=False,
|
| 120 |
# )
|
| 121 |
-
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
with gr.Column(min_width=256) as c1:
|
|
@@ -126,7 +129,7 @@ with block:
|
|
| 126 |
image_1_label = gr.Markdown("SD")
|
| 127 |
|
| 128 |
with gr.Group():
|
| 129 |
-
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 130 |
# with gr.Column():
|
| 131 |
# text = gr.Textbox(
|
| 132 |
# label="Enter your prompt",
|
|
@@ -135,7 +138,7 @@ with block:
|
|
| 135 |
# placeholder="Enter your prompt",
|
| 136 |
# container=False,
|
| 137 |
# )
|
| 138 |
-
|
| 139 |
|
| 140 |
with gr.Row():
|
| 141 |
with gr.Column(min_width=256) as c2:
|
|
|
|
| 97 |
with block:
|
| 98 |
gr.Markdown("SD vs. FreeU.")
|
| 99 |
with gr.Group():
|
| 100 |
+
with gr.Row():
|
| 101 |
+
sd_options = gr.Dropdown(['SD1.4', 'SD1.5', 'SD2.1'], value='SD1.4', label="SD options")
|
| 102 |
+
|
| 103 |
+
with gr.Column():
|
| 104 |
+
text = gr.Textbox(
|
| 105 |
+
label="Enter your prompt",
|
| 106 |
+
show_label=False,
|
| 107 |
+
max_lines=1,
|
| 108 |
+
placeholder="Enter your prompt",
|
| 109 |
+
container=False,
|
| 110 |
+
)
|
| 111 |
+
|
| 112 |
|
| 113 |
with gr.Row():
|
| 114 |
with gr.Group():
|
|
|
|
| 121 |
# placeholder="Enter your prompt",
|
| 122 |
# container=False,
|
| 123 |
# )
|
| 124 |
+
btn = gr.Button("Generate image", scale=0)
|
| 125 |
|
| 126 |
with gr.Row():
|
| 127 |
with gr.Column(min_width=256) as c1:
|
|
|
|
| 129 |
image_1_label = gr.Markdown("SD")
|
| 130 |
|
| 131 |
with gr.Group():
|
| 132 |
+
# with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 133 |
# with gr.Column():
|
| 134 |
# text = gr.Textbox(
|
| 135 |
# label="Enter your prompt",
|
|
|
|
| 138 |
# placeholder="Enter your prompt",
|
| 139 |
# container=False,
|
| 140 |
# )
|
| 141 |
+
btn = gr.Button("Generate image", scale=0)
|
| 142 |
|
| 143 |
with gr.Row():
|
| 144 |
with gr.Column(min_width=256) as c2:
|