Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,8 +49,9 @@ def chat():
|
|
| 49 |
print(user_query)
|
| 50 |
if user_query !="" and not user_query.strip().isspace() and not user_query == "" and not user_query.strip() == "" and not user_query.isspace():
|
| 51 |
try:
|
| 52 |
-
loader = WebBaseLoader(user_query)
|
| 53 |
-
|
|
|
|
| 54 |
print(user_query)
|
| 55 |
with st.spinner("AI Thinking...Please wait a while to Cheers!"):
|
| 56 |
docs = loader.load()
|
|
|
|
| 49 |
print(user_query)
|
| 50 |
if user_query !="" and not user_query.strip().isspace() and not user_query == "" and not user_query.strip() == "" and not user_query.isspace():
|
| 51 |
try:
|
| 52 |
+
#loader = WebBaseLoader(user_query)
|
| 53 |
+
loader = WebBaseLoader("https://zhuanlan.zhihu.com/p/627439522")
|
| 54 |
+
#print(loader)
|
| 55 |
print(user_query)
|
| 56 |
with st.spinner("AI Thinking...Please wait a while to Cheers!"):
|
| 57 |
docs = loader.load()
|