Update app.py
Browse files
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 =
|
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 |
|