Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
160 |
|
161 |
with gr.Row():
|
162 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
163 |
-
result = gr.Gallery(label="Result", columns=1, preview=True)
|
164 |
clr_button =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
|
165 |
clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt)
|
166 |
|
@@ -188,5 +188,5 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
188 |
|
189 |
app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
|
190 |
if __name__ == "__main__":
|
191 |
-
app.launch(show_api=False
|
192 |
|
|
|
160 |
|
161 |
with gr.Row():
|
162 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
163 |
+
result = gr.Gallery (label="Result", columns=1, preview=True)
|
164 |
clr_button =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
|
165 |
clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt)
|
166 |
|
|
|
188 |
|
189 |
app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
|
190 |
if __name__ == "__main__":
|
191 |
+
app.launch(show_api=False)
|
192 |
|