danejsakshi13 commited on
Commit
bae9dd1
·
1 Parent(s): 5be89ee

Switch to staka/fugumt-en-ja model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load English-to-Japanese translation pipeline
5
- translator = pipeline("translation", model="Helsinki-NLP/opus-mt-en-ja")
6
 
7
  # Define translation function
8
  def translate(text):
 
2
  from transformers import pipeline
3
 
4
  # Load English-to-Japanese translation pipeline
5
+ translator = pipeline("translation", model="staka/fugumt-en-ja")
6
 
7
  # Define translation function
8
  def translate(text):