Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,7 +117,7 @@ def save_with_fallback(image):
|
|
| 117 |
|
| 118 |
image.save(path, "PNG")
|
| 119 |
print(f"Temp gespeichert: {path}") # ← Debug
|
| 120 |
-
return
|
| 121 |
|
| 122 |
except Exception as e:
|
| 123 |
print(f"Temp-Speicherung fehlgeschlagen: {e}")
|
|
@@ -370,7 +370,8 @@ def main_ui():
|
|
| 370 |
generate_btn = gr.Button("Bild generieren", variant="primary")
|
| 371 |
txt_output = gr.Image(
|
| 372 |
label="Generiertes Bild",
|
| 373 |
-
show_download_button=True
|
|
|
|
| 374 |
)
|
| 375 |
|
| 376 |
generate_btn.click(
|
|
@@ -479,7 +480,8 @@ def main_ui():
|
|
| 479 |
with gr.Row():
|
| 480 |
img_output = gr.Image(
|
| 481 |
label="Transformiertes Bild",
|
| 482 |
-
show_download_button=True
|
|
|
|
| 483 |
)
|
| 484 |
|
| 485 |
# Event-Handler für Bild-Upload
|
|
|
|
| 117 |
|
| 118 |
image.save(path, "PNG")
|
| 119 |
print(f"Temp gespeichert: {path}") # ← Debug
|
| 120 |
+
return path
|
| 121 |
|
| 122 |
except Exception as e:
|
| 123 |
print(f"Temp-Speicherung fehlgeschlagen: {e}")
|
|
|
|
| 370 |
generate_btn = gr.Button("Bild generieren", variant="primary")
|
| 371 |
txt_output = gr.Image(
|
| 372 |
label="Generiertes Bild",
|
| 373 |
+
show_download_button=True,
|
| 374 |
+
type="filepath"
|
| 375 |
)
|
| 376 |
|
| 377 |
generate_btn.click(
|
|
|
|
| 480 |
with gr.Row():
|
| 481 |
img_output = gr.Image(
|
| 482 |
label="Transformiertes Bild",
|
| 483 |
+
show_download_button=True,
|
| 484 |
+
type="filepath"
|
| 485 |
)
|
| 486 |
|
| 487 |
# Event-Handler für Bild-Upload
|