chansung commited on
Commit
bd7b8ee
1 Parent(s): c4a2855

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def reset_chat(idx, ld, state):
109
  )
110
 
111
  def internet_search(ppmanager, serper_api_key, global_context, ctx_num_lconv, device="cpu"):
112
- internet_search_ppm = copy.deepcopy(ppm)
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."
115
 
 
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."
115