Tuana commited on
Commit
12c1880
β€’
1 Parent(s): 7d43669

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 (upload_file is None):
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: