junmou commited on
Commit
01b9f82
1 Parent(s): ca02ba7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from transformers import pipeline
2
  import gradio as grad
3
- mdl_name = "Helsinki-NLP/opus-mt-en-zh"
4
  opus_translator = pipeline("translation", model=mdl_name)
5
  def translate(text):
6
  response = opus_translator(text)
 
1
  from transformers import pipeline
2
  import gradio as grad
3
+ mdl_name = "Helsinki-NLP/opus-mt-en-de"
4
  opus_translator = pipeline("translation", model=mdl_name)
5
  def translate(text):
6
  response = opus_translator(text)