Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,5 +8,5 @@ st.title("Translate Levantine Arabic to English")
|
|
8 |
text = st.text_input("Enter text to translate:")
|
9 |
|
10 |
if text:
|
11 |
-
result =
|
12 |
st.write("Translation:", result[0]['translated_text'])
|
|
|
8 |
text = st.text_input("Enter text to translate:")
|
9 |
|
10 |
if text:
|
11 |
+
result = pipeline(text, max_length=1024)
|
12 |
st.write("Translation:", result[0]['translated_text'])
|