erfan226 commited on
Commit
6812992
1 Parent(s): 06e3643
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -22,13 +22,13 @@ max_length = st.sidebar.slider('حداکثر طول طول جمله', min_value=
22
  button = st.button("تبدیل متن")
23
 
24
  with st.spinner("در حال تبدیل متن..."):
25
- if button and text:
26
- # get the text
27
- out = paraphrase(text, num_beams, min_length, max_length)
28
- st.write(out)
29
- # display the summary
30
- st.markdown("**متن خروجی:**")
31
- st.write(out)
32
 
33
  # x = st.slider('Select a value')
34
  # st.write(x, 'squared is', x * x)
 
22
  button = st.button("تبدیل متن")
23
 
24
  with st.spinner("در حال تبدیل متن..."):
25
+ # if button and text:
26
+ # get the text
27
+ out = paraphrase(text, num_beams, min_length, max_length)
28
+ st.write(out)
29
+ # display the summary
30
+ st.markdown("**متن خروجی:**")
31
+ st.write(out)
32
 
33
  # x = st.slider('Select a value')
34
  # st.write(x, 'squared is', x * x)