Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,7 +151,7 @@ with gr.Blocks(theme="soft", css=CSS) as demo:
|
|
| 151 |
clear = gr.ClearButton([source_text, output_text])
|
| 152 |
|
| 153 |
source_text.change(lang_detector, source_text, source_lang)
|
| 154 |
-
submit.click(fn=
|
| 155 |
|
| 156 |
|
| 157 |
if __name__ == "__main__":
|
|
|
|
| 151 |
clear = gr.ClearButton([source_text, output_text])
|
| 152 |
|
| 153 |
source_text.change(lang_detector, source_text, source_lang)
|
| 154 |
+
submit.click(fn=translate, inputs=[source_lang, target_lang, source_text, max_chunk, max_length, temperature], outputs=[output_text])
|
| 155 |
|
| 156 |
|
| 157 |
if __name__ == "__main__":
|