rairo commited on
Commit
df8a866
·
verified ·
1 Parent(s): c65365e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ graph_config = {
28
  "api_key": GOOGLE_API_KEY,
29
  "model": "google_genai/gemini-2.0-flash-lite",
30
  },
31
- "max_results": 5,
32
  "verbose": True,
33
  "headless": True
34
 
@@ -60,7 +60,7 @@ def get_data(search_term):
60
  )
61
  result = search_graph.run()
62
  if not result or not result.get("grants"):
63
- st.error("No results returned. Please try again with different search terms.")
64
  return {}
65
  return result
66
  except Exception as e:
 
28
  "api_key": GOOGLE_API_KEY,
29
  "model": "google_genai/gemini-2.0-flash-lite",
30
  },
31
+ "max_results": 7,
32
  "verbose": True,
33
  "headless": True
34
 
 
60
  )
61
  result = search_graph.run()
62
  if not result or not result.get("grants"):
63
+ st.error(f"No results returned for {search_term}. Please try again with a different search_term.")
64
  return {}
65
  return result
66
  except Exception as e: