basantyahya commited on
Commit
10503f5
·
verified ·
1 Parent(s): 96decc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ custom_js = """
37
  """
38
 
39
  # -----------------------
40
- # AI Function (FIXED)
41
  # -----------------------
42
  def google_search_query(question):
43
  try:
@@ -94,7 +94,7 @@ with gr.Blocks(css=custom_css) as app:
94
 
95
  search_btn.click(
96
  fn=google_search_query,
97
- inputs=question,
98
  outputs=[ai_output, search_output],
99
  js=custom_js
100
  )
 
37
  """
38
 
39
  # -----------------------
40
+ # AI Function
41
  # -----------------------
42
  def google_search_query(question):
43
  try:
 
94
 
95
  search_btn.click(
96
  fn=google_search_query,
97
+ inputs=[question], # ✅ FIXED HERE
98
  outputs=[ai_output, search_output],
99
  js=custom_js
100
  )