basantyahya commited on
Commit
4b8ce5c
·
verified ·
1 Parent(s): e940eb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,8 +54,8 @@ def google_search_query(question):
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())
61
 
@@ -112,7 +112,7 @@ with gr.Blocks(css=custom_css) as app:
112
  # Button click
113
  search_btn.click(
114
  fn=google_search_query,
115
- inputs=[question],
116
  outputs=[ai_output, search_output],
117
  js=custom_js
118
  )
 
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())
61
 
 
112
  # Button click
113
  search_btn.click(
114
  fn=google_search_query,
115
+ inputs=question,
116
  outputs=[ai_output, search_output],
117
  js=custom_js
118
  )