Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -21,8 +21,14 @@ min_length = st.sidebar.slider('حداقل طول جمله', min_value=10, max_v
|
|
21 |
max_length = st.sidebar.slider('حداکثر طول طول جمله', min_value=30, max_value=700, value=100, step=10)
|
22 |
button = st.button("تبدیل متن")
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
# x = st.slider('Select a value')
|
28 |
# st.write(x, 'squared is', x * x)
|
|
|
21 |
max_length = st.sidebar.slider('حداکثر طول طول جمله', min_value=30, max_value=700, value=100, step=10)
|
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)
|