Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
-
translator = pipeline("
|
| 4 |
#classifier = pipeline("translation", model="Helsinki-NLP/opus-mt-mul-en")
|
| 5 |
def main():
|
| 6 |
-
st.title("Thai language
|
| 7 |
|
| 8 |
with st.form("text_field"):
|
| 9 |
text = st.text_area('enter some text :')
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
+
translator = pipeline("translation",model="Helsinki-NLP/opus-mt-mul-en", max_length=40)
|
| 4 |
#classifier = pipeline("translation", model="Helsinki-NLP/opus-mt-mul-en")
|
| 5 |
def main():
|
| 6 |
+
st.title("Thai language Translation")
|
| 7 |
|
| 8 |
with st.form("text_field"):
|
| 9 |
text = st.text_area('enter some text :')
|