Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,6 +93,8 @@ with gr.Blocks(css='style.css') as demo:
|
|
93 |
maximum=50,
|
94 |
step=1,
|
95 |
value=25)
|
|
|
|
|
96 |
|
97 |
inputs = [
|
98 |
prompt,
|
@@ -106,8 +108,6 @@ with gr.Blocks(css='style.css') as demo:
|
|
106 |
fn=generate,
|
107 |
cache_examples=os.getenv('SYSTEM') == 'spaces')
|
108 |
|
109 |
-
prompt.submit(fn=generate, inputs=inputs, outputs=result)
|
110 |
-
run_button.click(fn=generate, inputs=inputs, outputs=result)
|
111 |
|
112 |
with gr.Accordion(label='Biases and content acknowledgment', open=False):
|
113 |
gr.HTML("""<div class="acknowledgments">
|
@@ -124,4 +124,4 @@ with gr.Blocks(css='style.css') as demo:
|
|
124 |
</div>
|
125 |
""")
|
126 |
|
127 |
-
demo.queue(
|
|
|
93 |
maximum=50,
|
94 |
step=1,
|
95 |
value=25)
|
96 |
+
prompt.submit(fn=generate, inputs=inputs, outputs=result)
|
97 |
+
run_button.click(fn=generate, inputs=inputs, outputs=result)
|
98 |
|
99 |
inputs = [
|
100 |
prompt,
|
|
|
108 |
fn=generate,
|
109 |
cache_examples=os.getenv('SYSTEM') == 'spaces')
|
110 |
|
|
|
|
|
111 |
|
112 |
with gr.Accordion(label='Biases and content acknowledgment', open=False):
|
113 |
gr.HTML("""<div class="acknowledgments">
|
|
|
124 |
</div>
|
125 |
""")
|
126 |
|
127 |
+
demo.queue(max_size=15).launch()
|