Update app.py
Browse files
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())
|