mgokg commited on
Commit
2664ac6
·
verified ·
1 Parent(s): ecf55f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- return response_text.text
 
 
 
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: