Spaces:
Runtime error
Runtime error
Your Name
commited on
Commit
·
7399aac
1
Parent(s):
1218a11
app.py
CHANGED
|
@@ -45,7 +45,8 @@ def chat(message, site,history):
|
|
| 45 |
history = history or []
|
| 46 |
#siteの//以前を削除
|
| 47 |
site = site.replace("https://","")
|
| 48 |
-
|
|
|
|
| 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))
|