Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -429,8 +429,9 @@ def main_ui():
|
|
| 429 |
)
|
| 430 |
with gr.Column():
|
| 431 |
font_family_t2i = gr.Dropdown(
|
| 432 |
-
choices=["
|
| 433 |
-
|
|
|
|
| 434 |
label="Schriftart"
|
| 435 |
)
|
| 436 |
with gr.Column():
|
|
@@ -499,12 +500,27 @@ def main_ui():
|
|
| 499 |
outputs=[txt_output, preview_t2i],
|
| 500 |
concurrency_limit=1
|
| 501 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 502 |
|
| 503 |
text_btn_t2i.click(
|
| 504 |
-
fn=handle_text_integration_t2i,
|
| 505 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 506 |
outputs=txt_output
|
| 507 |
-
)
|
|
|
|
|
|
|
| 508 |
|
| 509 |
# === TAB: BILD ZU BILD ===
|
| 510 |
with gr.Tab("Bild zu Bild"):
|
|
|
|
| 429 |
)
|
| 430 |
with gr.Column():
|
| 431 |
font_family_t2i = gr.Dropdown(
|
| 432 |
+
choices=["Roboto", "Open Sans", "DejaVu Sans"],
|
| 433 |
+
#choices=["Arial", "Times New Roman", "Courier New"],
|
| 434 |
+
value="Roboto",
|
| 435 |
label="Schriftart"
|
| 436 |
)
|
| 437 |
with gr.Column():
|
|
|
|
| 500 |
outputs=[txt_output, preview_t2i],
|
| 501 |
concurrency_limit=1
|
| 502 |
)
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
|
| 508 |
|
| 509 |
text_btn_t2i.click(
|
| 510 |
+
fn=handle_text_integration_t2i, # Korrekte Funktion für Text-zu-Bild
|
| 511 |
+
inputs=[
|
| 512 |
+
txt_output, # Generiertes Bild
|
| 513 |
+
text_input_t2i, # Text eingeben
|
| 514 |
+
text_x_t2i, # X-Position
|
| 515 |
+
text_y_t2i, # Y-Position
|
| 516 |
+
font_size_t2i, # Schriftgröße ("120px", "80px", "40px")
|
| 517 |
+
font_family_t2i, # Schriftart ("Roboto", "Open Sans", "DejaVu Sans")
|
| 518 |
+
font_color_t2i # Schriftfarbe ("Weiß", "Schwarz", "Rot")
|
| 519 |
+
],
|
| 520 |
outputs=txt_output
|
| 521 |
+
)
|
| 522 |
+
|
| 523 |
+
|
| 524 |
|
| 525 |
# === TAB: BILD ZU BILD ===
|
| 526 |
with gr.Tab("Bild zu Bild"):
|