erfan226 commited on
Commit
980767f
1 Parent(s): 6812992
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -22,13 +22,10 @@ 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
+ out = paraphrase(text, num_beams, min_length, max_length)
27
+ st.markdown("**متن خروجی:**")
28
+ st.write(out)
 
 
 
29
 
30
  # x = st.slider('Select a value')
31
  # st.write(x, 'squared is', x * x)