Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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 |
|