Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def erzeuge_komplex(prompt):
|
|
45 |
with gr.Blocks() as demo:
|
46 |
with gr.Column(variant="panel"):
|
47 |
with gr.Row(variant="compact"):
|
48 |
-
|
49 |
label="Deine Beschreibung:",
|
50 |
show_label=False,
|
51 |
max_lines=1,
|
@@ -53,13 +53,13 @@ with gr.Blocks() as demo:
|
|
53 |
).style(
|
54 |
container=False,
|
55 |
)
|
56 |
-
btn = gr.Button("Bild
|
57 |
|
58 |
gallery = gr.Gallery(
|
59 |
-
label="
|
60 |
).style(columns=[2], rows=[2], object_fit="contain", height="auto")
|
61 |
|
62 |
-
btn.click(erzeuge, inputs=[
|
63 |
|
64 |
if __name__ == "__main__":
|
65 |
demo.launch()
|
|
|
45 |
with gr.Blocks() as demo:
|
46 |
with gr.Column(variant="panel"):
|
47 |
with gr.Row(variant="compact"):
|
48 |
+
text = gr.Textbox(
|
49 |
label="Deine Beschreibung:",
|
50 |
show_label=False,
|
51 |
max_lines=1,
|
|
|
53 |
).style(
|
54 |
container=False,
|
55 |
)
|
56 |
+
btn = gr.Button("erzeuge Bild").style(full_width=False, min_width=100)
|
57 |
|
58 |
gallery = gr.Gallery(
|
59 |
+
label="Erzeugtes Bild", show_label=False, elem_id="gallery"
|
60 |
).style(columns=[2], rows=[2], object_fit="contain", height="auto")
|
61 |
|
62 |
+
btn.click(erzeuge, inputs=[text], outputs=[gallery])
|
63 |
|
64 |
if __name__ == "__main__":
|
65 |
demo.launch()
|