Spaces:
Runtime error
Runtime error
cache examples
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ with gr.Blocks() as demo:
|
|
99 |
gr.Markdown('''
|
100 |
## Example inputs
|
101 |
''')
|
102 |
-
examples = gr.Examples(examples=example_list, label="Examples", inputs=[prompt])
|
103 |
button.click(inference, inputs=prompt, outputs=[norm_output, adapted_output])
|
104 |
|
105 |
demo.queue(concurrency_count=1)
|
|
|
99 |
gr.Markdown('''
|
100 |
## Example inputs
|
101 |
''')
|
102 |
+
examples = gr.Examples(examples=example_list, label="Examples", inputs=[prompt], cache_examples=True)
|
103 |
button.click(inference, inputs=prompt, outputs=[norm_output, adapted_output])
|
104 |
|
105 |
demo.queue(concurrency_count=1)
|