Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,16 +11,13 @@ def app():
|
|
11 |
st.markdown("This is a Web application that Summarizes Text 😎")
|
12 |
text=st.text_area('Enter Text')
|
13 |
|
14 |
-
summarizer = pipeline("summarization", model="google/bigbird-pegasus-large-bigpatent"
|
15 |
-
|
16 |
-
pipe=summarizer(text,min_length=100, max_length=400)
|
17 |
-
|
18 |
|
19 |
# Check to see if a file has been uploaded
|
20 |
if text:
|
21 |
st.success("Summarizing Text, Please wait...")
|
22 |
# If it has then do the following:
|
23 |
-
out=pipe(text)
|
24 |
st.json(out)
|
25 |
|
26 |
|
|
|
11 |
st.markdown("This is a Web application that Summarizes Text 😎")
|
12 |
text=st.text_area('Enter Text')
|
13 |
|
14 |
+
summarizer = pipeline("summarization", model="google/bigbird-pegasus-large-bigpatent"
|
|
|
|
|
|
|
15 |
|
16 |
# Check to see if a file has been uploaded
|
17 |
if text:
|
18 |
st.success("Summarizing Text, Please wait...")
|
19 |
# If it has then do the following:
|
20 |
+
out=pipe(text,min_length=100, max_length=400)
|
21 |
st.json(out)
|
22 |
|
23 |
|