Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -22,13 +22,10 @@ max_length = st.sidebar.slider('حداکثر طول طول جمله', min_value=
|
|
22 |
button = st.button("تبدیل متن")
|
23 |
|
24 |
with st.spinner("در حال تبدیل متن..."):
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
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)
|