Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ css = '''
|
|
105 |
.gradio-container{max-width: 100% !important}
|
106 |
h1{text-align:center}
|
107 |
'''
|
108 |
-
with gr.Blocks(css=css) as
|
109 |
gr.Markdown(DESCRIPTION)
|
110 |
gr.Markdown(
|
111 |
"""
|
@@ -126,7 +126,7 @@ with gr.Blocks(css=css) as demo:
|
|
126 |
placeholder="Enter your prompt",
|
127 |
container=False,
|
128 |
)
|
129 |
-
run_button = gr.Button("
|
130 |
result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False)
|
131 |
with gr.Accordion("Advanced options", open=False):
|
132 |
with gr.Row():
|
@@ -206,4 +206,4 @@ with gr.Blocks(css=css) as demo:
|
|
206 |
)
|
207 |
|
208 |
if __name__ == "__main__":
|
209 |
-
|
|
|
105 |
.gradio-container{max-width: 100% !important}
|
106 |
h1{text-align:center}
|
107 |
'''
|
108 |
+
with gr.Blocks(css=css) as playg:
|
109 |
gr.Markdown(DESCRIPTION)
|
110 |
gr.Markdown(
|
111 |
"""
|
|
|
126 |
placeholder="Enter your prompt",
|
127 |
container=False,
|
128 |
)
|
129 |
+
run_button = gr.Button("Generate", scale=0)
|
130 |
result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False)
|
131 |
with gr.Accordion("Advanced options", open=False):
|
132 |
with gr.Row():
|
|
|
206 |
)
|
207 |
|
208 |
if __name__ == "__main__":
|
209 |
+
playg.queue(max_size=20).launch()
|