add translation
Browse files
app.py
CHANGED
@@ -69,7 +69,9 @@ with gr.Blocks() as demo:
|
|
69 |
with gr.Row():
|
70 |
gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=cahya_indochat)")
|
71 |
|
72 |
-
button_generate_story.click(get_answer,
|
73 |
-
|
|
|
|
|
74 |
|
75 |
demo.launch(enable_queue=False)
|
|
|
69 |
with gr.Row():
|
70 |
gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=cahya_indochat)")
|
71 |
|
72 |
+
button_generate_story.click(get_answer,
|
73 |
+
inputs=[user_input, decoding_methods, num_beams, top_k, top_p, temperature,
|
74 |
+
repetition_penalty, penalty_alpha],
|
75 |
+
outputs=[generated_answer, generated_answer_en])
|
76 |
|
77 |
demo.launch(enable_queue=False)
|