Spaces:
Runtime error
Runtime error
Update
Browse files
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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
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)
|