Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -19,7 +19,10 @@ text = st.text_area('Paste your link here...', "من با دوستام میرم
|
|
19 |
num_beams = st.sidebar.slider('طول Beam', min_value=1, max_value=10, value=5, step=1)
|
20 |
min_length = st.sidebar.slider('حداقل طول جمله', min_value=10, max_value=100, value=50, step=10)
|
21 |
max_length = st.sidebar.slider('حداکثر طول طول جمله', min_value=30, max_value=700, value=100, step=10)
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
# x = st.slider('Select a value')
|
25 |
# st.write(x, 'squared is', x * x)
|
|
|
19 |
num_beams = st.sidebar.slider('طول Beam', min_value=1, max_value=10, value=5, step=1)
|
20 |
min_length = st.sidebar.slider('حداقل طول جمله', min_value=10, max_value=100, value=50, step=10)
|
21 |
max_length = st.sidebar.slider('حداکثر طول طول جمله', min_value=30, max_value=700, value=100, step=10)
|
22 |
+
button = st.button("تبدیل متن")
|
23 |
+
|
24 |
+
if button:
|
25 |
+
out = paraphrase(text, num_beams, min_length, max_length)
|
26 |
+
st.write(out)
|
27 |
# x = st.slider('Select a value')
|
28 |
# st.write(x, 'squared is', x * x)
|