Frenchizer commited on
Commit
47e25c1
·
verified ·
1 Parent(s): 65ed74c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,11 +39,11 @@ def translate_text(input_texts):
39
 
40
  # Gradio interface
41
  interface = gr.Interface(
42
- fn=translate_text,
43
- inputs=gr.inputs.Textbox(lines=2, placeholder="Enter text to translate..."),
44
  outputs="text",
45
- title="MarianMT Translation",
46
- description="Translate text using MarianMT model with ONNX runtime.",
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