Your Name commited on
Commit
7399aac
1 Parent(s): 1218a11
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ def chat(message, site,history):
45
  history = history or []
46
  #siteの//以前を削除
47
  site = site.replace("https://","")
48
- response = agent_chain.run(input=message+" site:"+site)
 
49
  if not response:
50
  response = "website not found"
51
  history.append((message, response))
 
45
  history = history or []
46
  #siteの//以前を削除
47
  site = site.replace("https://","")
48
+ if agent_chain.run(input=message+" site:"+site):
49
+ response = agent_chain.run(input=message+" site:"+site)
50
  if not response:
51
  response = "website not found"
52
  history.append((message, response))