Julien Matuszak commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,11 +39,11 @@ def translate_text(input_texts):
|
|
| 39 |
|
| 40 |
# Gradio interface
|
| 41 |
interface = gr.Interface(
|
| 42 |
-
|
| 43 |
-
inputs=
|
| 44 |
outputs="text",
|
| 45 |
-
title="
|
| 46 |
-
description="Translate text
|
| 47 |
)
|
| 48 |
|
| 49 |
# Launch the interface
|
|
|
|
| 39 |
|
| 40 |
# Gradio interface
|
| 41 |
interface = gr.Interface(
|
| 42 |
+
fn=translate_text,
|
| 43 |
+
inputs="text",
|
| 44 |
outputs="text",
|
| 45 |
+
title="Frenchizer Translation Model",
|
| 46 |
+
description="Translate text with MarianMT ONNX model and encoding by batches."
|
| 47 |
)
|
| 48 |
|
| 49 |
# Launch the interface
|