Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
116 |
with gr.Column():
|
117 |
output_text = gr.Textbox(lines=5, placeholder="Output text will appear here...", label="Output Text")
|
118 |
|
119 |
-
gr.Examples(examples=examples, inputs=input_text, cache_examples=True) # , cache_examples="true"
|
120 |
temperature_slider = gr.Slider(minimum=0.1, maximum=5.0, step=0.1, value=1.0, label="Temperature")
|
121 |
|
122 |
clean_button = gr.Button("Generate Text")
|
|
|
116 |
with gr.Column():
|
117 |
output_text = gr.Textbox(lines=5, placeholder="Output text will appear here...", label="Output Text")
|
118 |
|
119 |
+
gr.Examples(examples=examples, inputs=input_text, cache_examples=True, fn=generate_text, outputs=output_text) # , cache_examples="true"
|
120 |
temperature_slider = gr.Slider(minimum=0.1, maximum=5.0, step=0.1, value=1.0, label="Temperature")
|
121 |
|
122 |
clean_button = gr.Button("Generate Text")
|