guymorlan commited on
Commit
578d533
·
1 Parent(s): d8b00f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = model(text, max_length=1024)
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'])