Spaces:
Sleeping
Sleeping
Commit
·
bae9dd1
1
Parent(s):
5be89ee
Switch to staka/fugumt-en-ja model
Browse files
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="
|
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):
|