OzoneAsai commited on
Commit
750d299
·
verified ·
1 Parent(s): 06b9a2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,9 +3,9 @@ import pandas as pd
3
  from transformers import pipelines
4
 
5
  # transformers パイプラインのインポート
6
- fugu_translator_enja = pipelines.TranslationModel(model='staka/fugumt-en-ja')
7
- fugu_translator_jaen = pipelines.TranslationModel(model='staka/fugumt-ja-en')
8
- zhja_translator = pipelines.TranslationModel(model="Helsinki-NLP/opus-mt-tc-big-zh-ja")
9
 
10
  # Streamlit アプリケーション
11
  st.title("Multi-Language Translator")
 
3
  from transformers import pipelines
4
 
5
  # transformers パイプラインのインポート
6
+ fugu_translator_enja = pipeline("translation", model="staka/fugumt-en-ja")
7
+ fugu_translator_jaen = pipeline("translation",model='staka/fugumt-ja-en')
8
+ zhja_translator = pipeline("translation",model="Helsinki-NLP/opus-mt-tc-big-zh-ja")
9
 
10
  # Streamlit アプリケーション
11
  st.title("Multi-Language Translator")