Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ custom_js = """
|
|
| 37 |
"""
|
| 38 |
|
| 39 |
# -----------------------
|
| 40 |
-
# AI Function
|
| 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 |
)
|