Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,6 @@ with gr.Blocks() as demo:
|
|
57 |
# text_input = gr.Textbox(label="Enter prompt")
|
58 |
# model_select = gr.Dropdown(label="Select Model", choices=['sd1', 'sd2'])
|
59 |
# seed_input = gr.Number(label="Enter Seed", value=0) # Default seed set to 0
|
60 |
-
with gr.Column():
|
61 |
-
gallery = gr.Gallery(label="Generated Images", columns=4, rows=3, object_fit="contain", height="auto")
|
62 |
# Update the submit function to include the new inputs
|
63 |
|
64 |
|
@@ -96,6 +94,9 @@ with gr.Blocks() as demo:
|
|
96 |
|
97 |
generate_button = gr.Button("Generate Image")
|
98 |
|
|
|
|
|
|
|
99 |
gr.on(
|
100 |
triggers=[
|
101 |
# prompt.submit,
|
|
|
57 |
# text_input = gr.Textbox(label="Enter prompt")
|
58 |
# model_select = gr.Dropdown(label="Select Model", choices=['sd1', 'sd2'])
|
59 |
# seed_input = gr.Number(label="Enter Seed", value=0) # Default seed set to 0
|
|
|
|
|
60 |
# Update the submit function to include the new inputs
|
61 |
|
62 |
|
|
|
94 |
|
95 |
generate_button = gr.Button("Generate Image")
|
96 |
|
97 |
+
with gr.Column():
|
98 |
+
gallery = gr.Gallery(label="Generated Images", columns=4, rows=3, object_fit="contain", height="auto")
|
99 |
+
|
100 |
gr.on(
|
101 |
triggers=[
|
102 |
# prompt.submit,
|