Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ ARTICLE=st.text_input("This is meant for text summarization tasks: Provide your
|
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
-
results = summarizer(ARTICLE, max_length=
|
| 34 |
|
| 35 |
#Now let’s see the results.
|
| 36 |
st.header("Your results are below")
|
|
@@ -42,8 +42,8 @@ st.write(results[0]["summary_text"])
|
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
-
x1 = st.slider('Select a value')
|
| 46 |
-
st.write(x1, 'squared is', x1 * x1)
|
| 47 |
|
| 48 |
# x2 = st.slider('Select a second value')
|
| 49 |
# st.write(x2, 'squared is', x2 * x2)
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
+
results = summarizer(ARTICLE, max_length=1000, min_length=500, do_sample=False)
|
| 34 |
|
| 35 |
#Now let’s see the results.
|
| 36 |
st.header("Your results are below")
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
+
# x1 = st.slider('Select a value')
|
| 46 |
+
# st.write(x1, 'squared is', x1 * x1)
|
| 47 |
|
| 48 |
# x2 = st.slider('Select a second value')
|
| 49 |
# st.write(x2, 'squared is', x2 * x2)
|