Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -292,6 +292,12 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
292 |
label="Text Content",
|
293 |
placeholder="Enter text to add..."
|
294 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
with gr.Row():
|
296 |
font_choice = gr.Dropdown(
|
297 |
choices=["Default", "Korean Regular"],
|
@@ -370,7 +376,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
370 |
x_position,
|
371 |
y_position,
|
372 |
thickness,
|
373 |
-
|
374 |
font_choice
|
375 |
],
|
376 |
outputs=output_image
|
@@ -382,7 +388,4 @@ demo.launch(
|
|
382 |
server_port=7860,
|
383 |
share=False,
|
384 |
max_threads=2
|
385 |
-
)
|
386 |
-
|
387 |
-
|
388 |
-
|
|
|
292 |
label="Text Content",
|
293 |
placeholder="Enter text to add..."
|
294 |
)
|
295 |
+
text_position_type = gr.Radio(
|
296 |
+
choices=["Text Over Image"],
|
297 |
+
value="Text Over Image",
|
298 |
+
label="Text Position",
|
299 |
+
visible=True
|
300 |
+
)
|
301 |
with gr.Row():
|
302 |
font_choice = gr.Dropdown(
|
303 |
choices=["Default", "Korean Regular"],
|
|
|
376 |
x_position,
|
377 |
y_position,
|
378 |
thickness,
|
379 |
+
text_position_type,
|
380 |
font_choice
|
381 |
],
|
382 |
outputs=output_image
|
|
|
388 |
server_port=7860,
|
389 |
share=False,
|
390 |
max_threads=2
|
391 |
+
)
|
|
|
|
|
|