Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,14 +49,13 @@ 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 |
-
|
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()
|
58 |
-
result=chain.run(docs)
|
59 |
-
print(user_query)
|
60 |
print("AI Summarization: "+result)
|
61 |
#st.write("AI Summarization:")、
|
62 |
#st.write(result)
|
|
|
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()
|
58 |
+
result=chain.run(docs)
|
|
|
59 |
print("AI Summarization: "+result)
|
60 |
#st.write("AI Summarization:")、
|
61 |
#st.write(result)
|