Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
@@ -171,7 +171,6 @@ with block:
|
|
171 |
with gr.Row().style(mobile_collapse=False, equal_height=True):
|
172 |
text = gr.Textbox(
|
173 |
label="input_text",
|
174 |
-
show_label=False,
|
175 |
max_lines=1,
|
176 |
placeholder="Enter your Chinese prompt",
|
177 |
).style(
|
@@ -202,8 +201,7 @@ with block:
|
|
202 |
|
203 |
text_gen = gr.Text(label="generated_text")
|
204 |
|
205 |
-
ex = gr.Examples(examples=examples, fn=inference, inputs=[
|
206 |
-
task, text, min_dec_len, seq_len, topp, penalty_score], outputs=text_gen, cache_examples=False)
|
207 |
|
208 |
text.submit(inference, inputs=[task, text, min_dec_len, seq_len, topp, penalty_score], outputs=text_gen)
|
209 |
btn.click(inference, inputs=[task, text, min_dec_len, seq_len, topp, penalty_score], outputs=text_gen)
|
|
|
171 |
with gr.Row().style(mobile_collapse=False, equal_height=True):
|
172 |
text = gr.Textbox(
|
173 |
label="input_text",
|
|
|
174 |
max_lines=1,
|
175 |
placeholder="Enter your Chinese prompt",
|
176 |
).style(
|
|
|
201 |
|
202 |
text_gen = gr.Text(label="generated_text")
|
203 |
|
204 |
+
ex = gr.Examples(examples=examples, fn=inference, inputs=[task, text, min_dec_len, seq_len, topp, penalty_score], outputs=text_gen, cache_examples=True)
|
|
|
205 |
|
206 |
text.submit(inference, inputs=[task, text, min_dec_len, seq_len, topp, penalty_score], outputs=text_gen)
|
207 |
btn.click(inference, inputs=[task, text, min_dec_len, seq_len, topp, penalty_score], outputs=text_gen)
|