abidlabs HF staff commited on
Commit
3e27264
1 Parent(s): 5fc738a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
 
3
  from transformers import pipeline
4
 
5
- pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
6
 
7
  def predict(text):
8
  return pipe(text)[0]["translation_text"]
 
2
 
3
  from transformers import pipeline
4
 
5
+ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-fr")
6
 
7
  def predict(text):
8
  return pipe(text)[0]["translation_text"]