Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -240,20 +240,21 @@ footer {
|
|
| 240 |
|
| 241 |
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
|
| 242 |
text_position = gr.State("middle-center")
|
| 243 |
-
|
| 244 |
with gr.Row():
|
| 245 |
with gr.Column(elem_id="col-left"):
|
| 246 |
with gr.Row():
|
| 247 |
prompt = gr.Textbox(
|
| 248 |
label="Prompt",
|
| 249 |
placeholder="Enter your prompt",
|
| 250 |
-
lines=2
|
|
|
|
| 251 |
)
|
| 252 |
with gr.Row():
|
| 253 |
text_for_image = gr.Textbox(
|
| 254 |
label="Text for Image Generation",
|
| 255 |
placeholder="Enter text to be converted into an image",
|
| 256 |
-
lines=3
|
|
|
|
| 257 |
)
|
| 258 |
with gr.Row():
|
| 259 |
with gr.Column():
|
|
@@ -264,7 +265,6 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
|
|
| 264 |
for btn, pos in zip(position_buttons, position_list):
|
| 265 |
btn.click(lambda p=pos: p, outputs=text_position)
|
| 266 |
btn.click(update_button_states, inputs=[text_position], outputs=position_buttons)
|
| 267 |
-
|
| 268 |
with gr.Column():
|
| 269 |
font_size = gr.Slider(
|
| 270 |
label="Text Size",
|
|
|
|
| 240 |
|
| 241 |
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
|
| 242 |
text_position = gr.State("middle-center")
|
|
|
|
| 243 |
with gr.Row():
|
| 244 |
with gr.Column(elem_id="col-left"):
|
| 245 |
with gr.Row():
|
| 246 |
prompt = gr.Textbox(
|
| 247 |
label="Prompt",
|
| 248 |
placeholder="Enter your prompt",
|
| 249 |
+
lines=2,
|
| 250 |
+
value="a delicious ceviche cheesecake slice, 울트라 HD" # Default value added here
|
| 251 |
)
|
| 252 |
with gr.Row():
|
| 253 |
text_for_image = gr.Textbox(
|
| 254 |
label="Text for Image Generation",
|
| 255 |
placeholder="Enter text to be converted into an image",
|
| 256 |
+
lines=3,
|
| 257 |
+
value="대한 萬世 GO" # Default value added here
|
| 258 |
)
|
| 259 |
with gr.Row():
|
| 260 |
with gr.Column():
|
|
|
|
| 265 |
for btn, pos in zip(position_buttons, position_list):
|
| 266 |
btn.click(lambda p=pos: p, outputs=text_position)
|
| 267 |
btn.click(update_button_states, inputs=[text_position], outputs=position_buttons)
|
|
|
|
| 268 |
with gr.Column():
|
| 269 |
font_size = gr.Slider(
|
| 270 |
label="Text Size",
|