guymorlan commited on
Commit
2c2c425
1 Parent(s): 45985df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -10,8 +10,8 @@ input_text = st.text_input("Enter ِArabic text:")
10
 
11
  if input_text:
12
  result = pipeline(input_text, max_length=1024, num_return_sequences=num_translations, num_beams=max(num_translations, 5))[0]['translation_text']
13
- st.markdown("<div style='font-size:24px;'>")
14
- for i in range(len(result)):
15
- st.markdown("{}".format(result[i]['generated_text']), unsafe_allow_html=True)
16
- st.markdown("<br>")
17
- st.markdown("</div>")
 
10
 
11
  if input_text:
12
  result = pipeline(input_text, max_length=1024, num_return_sequences=num_translations, num_beams=max(num_translations, 5))[0]['translation_text']
13
+ st.markdown("<div style='font-size:24px;'>")
14
+ for i in range(len(result)):
15
+ st.markdown("{}".format(result[i]['generated_text']), unsafe_allow_html=True)
16
+ st.markdown("<br>")
17
+ st.markdown("</div>")