Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,10 @@ def websearch(search_term):
|
|
59 |
response_text = soup.find('body')
|
60 |
#result = predict(response_text.text)
|
61 |
#first_div = soup.find('div', class_='MjjYud')
|
62 |
-
|
|
|
|
|
|
|
63 |
|
64 |
# Create the Gradio interface
|
65 |
with gr.Blocks(css=custom_css) as demo:
|
|
|
59 |
response_text = soup.find('body')
|
60 |
#result = predict(response_text.text)
|
61 |
#first_div = soup.find('div', class_='MjjYud')
|
62 |
+
prompt = f"{search_term}\n use this result from a google search to answer the question \n {response_text.text}"
|
63 |
+
result = predict(prompt)
|
64 |
+
#return response_text.text
|
65 |
+
return result
|
66 |
|
67 |
# Create the Gradio interface
|
68 |
with gr.Blocks(css=custom_css) as demo:
|