Spaces:
Runtime error
Runtime error
Commit
·
94c9ba6
1
Parent(s):
714b860
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,9 +101,14 @@ def flip_text(prompt, negative_prompt, steps, cfg_scale, width, height, seed):
|
|
| 101 |
|
| 102 |
return job["imageUrl"]
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
-
|
| 106 |
-
with gr.Blocks() as demo:
|
| 107 |
gr.HTML(
|
| 108 |
"""
|
| 109 |
<div style="text-align: center; margin: 0 auto;">
|
|
@@ -154,7 +159,7 @@ with gr.Blocks() as demo:
|
|
| 154 |
</div>
|
| 155 |
</div>
|
| 156 |
""")
|
| 157 |
-
with gr.Row():
|
| 158 |
with gr.Column(scale=6, min_width=600):
|
| 159 |
prompt = gr.Textbox(label="Prompt", placeholder="a cute cat, 8k", show_label=True, lines=1)
|
| 160 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
|
|
|
| 101 |
|
| 102 |
return job["imageUrl"]
|
| 103 |
|
| 104 |
+
css = """
|
| 105 |
+
#prompt-container .form{
|
| 106 |
+
border-top-right-radius: 0;
|
| 107 |
+
border-bottom-right-radius: 0;
|
| 108 |
+
}
|
| 109 |
+
"""
|
| 110 |
|
| 111 |
+
with gr.Blocks(css=css) as demo:
|
|
|
|
| 112 |
gr.HTML(
|
| 113 |
"""
|
| 114 |
<div style="text-align: center; margin: 0 auto;">
|
|
|
|
| 159 |
</div>
|
| 160 |
</div>
|
| 161 |
""")
|
| 162 |
+
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 163 |
with gr.Column(scale=6, min_width=600):
|
| 164 |
prompt = gr.Textbox(label="Prompt", placeholder="a cute cat, 8k", show_label=True, lines=1)
|
| 165 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|