Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ This Summarization demo uses a [Haystack TransformerSummarizer node](https://hay
|
|
71 |
uploaded_file = st.file_uploader("Choose a PDF file", accept_multiple_files=False)
|
72 |
url = st.text_input(label="enter a URL")
|
73 |
|
74 |
-
if (validators.url(url)) and (
|
75 |
if st.button('Summarize contents of URL'):
|
76 |
with st.spinner("π Please wait while we produce a summary..."):
|
77 |
try:
|
|
|
71 |
uploaded_file = st.file_uploader("Choose a PDF file", accept_multiple_files=False)
|
72 |
url = st.text_input(label="enter a URL")
|
73 |
|
74 |
+
if (validators.url(url)) and (uploaded_file is None):
|
75 |
if st.button('Summarize contents of URL'):
|
76 |
with st.spinner("π Please wait while we produce a summary..."):
|
77 |
try:
|