Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ with demo:
|
|
56 |
artist = gr.Number(value="2", label="Num of artist (Standart 2)", show_label=True)
|
57 |
out = gr.Textbox(lines=4, label="Generated Prompts")
|
58 |
greet_btn = gr.Button("Generate")
|
59 |
-
greet_btn.click(fn=promptgen, inputs=[model_size, number, artist], outputs=out)
|
60 |
gr.HTML(
|
61 |
"""
|
62 |
<div class="footer">
|
@@ -65,5 +65,5 @@ with demo:
|
|
65 |
"""
|
66 |
)
|
67 |
|
68 |
-
demo.queue(
|
69 |
demo.launch()
|
|
|
56 |
artist = gr.Number(value="2", label="Num of artist (Standart 2)", show_label=True)
|
57 |
out = gr.Textbox(lines=4, label="Generated Prompts")
|
58 |
greet_btn = gr.Button("Generate")
|
59 |
+
greet_btn.click(fn=promptgen, inputs=[model_size, number, artist], outputs=out, concurrency_limit=4)
|
60 |
gr.HTML(
|
61 |
"""
|
62 |
<div class="footer">
|
|
|
65 |
"""
|
66 |
)
|
67 |
|
68 |
+
demo.queue()
|
69 |
demo.launch()
|