piecurus commited on
Commit
adced78
·
1 Parent(s): 87dffb7

Update app.py

Browse files

Removed url verification

Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -38,15 +38,9 @@ if __name__ == "__main__":
38
  "Upload a .txt, .pdf, .docx file for summarization"
39
  )
40
 
41
- is_url = validators.url(inp_text)
42
- if is_url:
43
- # complete text, chunks to summarize (list of sentences for long docs)
44
- text, clean_txt = fetch_article_text(url=inp_text)
45
- elif uploaded_file:
46
  clean_txt = read_text_from_file(uploaded_file)
47
  clean_txt = clean_text(clean_txt)
48
- else:
49
- clean_txt = clean_text(inp_text)
50
 
51
  # view summarized text (expander)
52
  with st.expander("View input text"):
 
38
  "Upload a .txt, .pdf, .docx file for summarization"
39
  )
40
 
41
+ if uploaded_file:
 
 
 
 
42
  clean_txt = read_text_from_file(uploaded_file)
43
  clean_txt = clean_text(clean_txt)
 
 
44
 
45
  # view summarized text (expander)
46
  with st.expander("View input text"):