zakerytclarke commited on
Commit
4d1bbea
·
verified ·
1 Parent(s): 28d3307

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def brave_search_context(query, count=3):
38
  if response.status_code == 200:
39
  results = response.json().get("web", {}).get("results", [])
40
  print(results)
41
- return "\n\n".join([res["title"]+"\n"+res["description"].replace("<strong>","").replace("</strong>","") for res in results])
42
  else:
43
  print(f"Error: {response.status_code}, {response.text}")
44
  return ""
 
38
  if response.status_code == 200:
39
  results = response.json().get("web", {}).get("results", [])
40
  print(results)
41
+ return "\n\n".join([res["title"]+"\n"+res["url"]+"\n"+res["description"].replace("<strong>","").replace("</strong>","") for res in results])
42
  else:
43
  print(f"Error: {response.status_code}, {response.text}")
44
  return ""