Spaces:
Runtime error
Runtime error
fix bug
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
|
145 |
)
|
146 |
|
147 |
btn_submit = gr.Button("Translate")
|
148 |
-
btn_submit.click(fn=generate, inputs=[tgt_lang, text_input, 4096, 0, 50, 0], outputs=text_output)
|
149 |
|
150 |
gr.Examples(
|
151 |
examples=[
|
@@ -155,7 +155,7 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
|
155 |
["English", "Hello, how are you today? I hope you're doing well.", "Marathi"],
|
156 |
["English", "Hello, how are you today? I hope you're doing well.", "Malayalam"]
|
157 |
],
|
158 |
-
inputs=[tgt_lang, text_input, 4096, 0, 50, 0],
|
159 |
outputs=text_output,
|
160 |
fn=generate,
|
161 |
cache_examples=True,
|
|
|
145 |
)
|
146 |
|
147 |
btn_submit = gr.Button("Translate")
|
148 |
+
btn_submit.click(fn=generate, inputs=[tgt_lang, text_input, 4096, 0, 0.9, 50, 0], outputs=text_output)
|
149 |
|
150 |
gr.Examples(
|
151 |
examples=[
|
|
|
155 |
["English", "Hello, how are you today? I hope you're doing well.", "Marathi"],
|
156 |
["English", "Hello, how are you today? I hope you're doing well.", "Malayalam"]
|
157 |
],
|
158 |
+
inputs=[tgt_lang, text_input, 4096, 0, 0.9, 50, 0],
|
159 |
outputs=text_output,
|
160 |
fn=generate,
|
161 |
cache_examples=True,
|