iShare commited on
Commit
26f83fa
·
1 Parent(s): 5c43704

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -36,12 +36,15 @@ if url !="" and not url.strip().isspace() and not url == "" and not url.strip()
36
  try:
37
  #loader = WebBaseLoader("https://www.usinoip.com/")
38
  with st.spinner("AI Thinking...Please wait a while to Cheers!"):
 
39
  loader = WebBaseLoader(url)
 
40
  docs = loader.load()
 
41
  result=chain.run(docs) #这个result的格式比较特殊,可以直接print,但不可以和其他字符串联合print输出
42
-
43
  print(url)
44
- ai_response=str(result)
45
 
46
  #print("AI Summarization: "+result) #这个会出错,原因见上方
47
  print("AI Summarization:")
 
36
  try:
37
  #loader = WebBaseLoader("https://www.usinoip.com/")
38
  with st.spinner("AI Thinking...Please wait a while to Cheers!"):
39
+ print("1")
40
  loader = WebBaseLoader(url)
41
+ print("2")
42
  docs = loader.load()
43
+ print("3")
44
  result=chain.run(docs) #这个result的格式比较特殊,可以直接print,但不可以和其他字符串联合print输出
45
+ print("4")
46
  print(url)
47
+ ai_response=str(result)
48
 
49
  #print("AI Summarization: "+result) #这个会出错,原因见上方
50
  print("AI Summarization:")