basantyahya commited on
Commit
c2b69c8
Β·
verified Β·
1 Parent(s): e687876

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,10 +51,10 @@ custom_js = """
51
  def google_search_query(question):
52
  try:
53
  # πŸ”’ Bulletproof input normalization
54
- question = "" if question is None else str(question)
55
- question = question.strip()
56
 
57
- if question == "":
58
  return "Please type a question above πŸ‘†", ""
59
 
60
  google_search_tool = Tool(google_search=GoogleSearch())
 
51
  def google_search_query(question):
52
  try:
53
  # πŸ”’ Bulletproof input normalization
54
+ # question = "" if question is None else str(question)
55
+ # question = question.strip()
56
 
57
+ if question is None:
58
  return "Please type a question above πŸ‘†", ""
59
 
60
  google_search_tool = Tool(google_search=GoogleSearch())