orrinin commited on
Commit
1ebf8b3
1 Parent(s): 62fd8b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def infer(message:str, history: list):
92
  documents, option = extract_doc(files_list)
93
  else:
94
  if message["text"].startswith("http://") or message["text"].startswith("https://"):
95
- documents, option = extract_doc(message["text"])
96
  elif not message["text"].startswith("http://") and not message["text"].startswith("https://") and len(history) == 0:
97
  gr.Error("Please input an url or upload file at first.")
98
 
 
92
  documents, option = extract_doc(files_list)
93
  else:
94
  if message["text"].startswith("http://") or message["text"].startswith("https://"):
95
+ documents, option = extract_web(message["text"])
96
  elif not message["text"].startswith("http://") and not message["text"].startswith("https://") and len(history) == 0:
97
  gr.Error("Please input an url or upload file at first.")
98