chansung commited on
Commit
72b89d8
1 Parent(s): a7b5e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ def reset_chat(idx, ld, state):
108
  gr.update(interactive=False),
109
  )
110
 
111
- def internet_search(ppmanager, serper_api_key, global_context, ctx_num_lconv, device="cpu"):
112
  internet_search_ppm = copy.deepcopy(ppmanager)
113
  user_msg = internet_search_ppm.pingpongs[-1].ping
114
  internet_search_prompt = f"My question is '{user_msg}'. Based on the conversation history, give me an appropriate query to answer my question for google search. You should not say more than query. You should not say any words except the query."
 
108
  gr.update(interactive=False),
109
  )
110
 
111
+ def internet_search(ppmanager, serper_api_key, global_context, ctx_num_lconv, device="gpu"):
112
  internet_search_ppm = copy.deepcopy(ppmanager)
113
  user_msg = internet_search_ppm.pingpongs[-1].ping
114
  internet_search_prompt = f"My question is '{user_msg}'. Based on the conversation history, give me an appropriate query to answer my question for google search. You should not say more than query. You should not say any words except the query."