Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ MAX_BOXES = MAX_TURNS * 2
|
|
72 |
return_msg = []
|
73 |
chat_history = ""
|
74 |
|
75 |
-
MAX_SLEEP_TIME =
|
76 |
def load_tools():
|
77 |
global valid_tools_info
|
78 |
global all_tools_list
|
@@ -154,7 +154,11 @@ def answer_by_tools(question, tools_chosen, model_chosen):
|
|
154 |
chat_history += "Answer:" + inter['output'] + "\n"
|
155 |
result_str.append("...")
|
156 |
else:
|
157 |
-
|
|
|
|
|
|
|
|
|
158 |
if not not_observation.startswith('Thought:'):
|
159 |
not_observation = "Thought: " + not_observation
|
160 |
chat_history += not_observation
|
|
|
72 |
return_msg = []
|
73 |
chat_history = ""
|
74 |
|
75 |
+
MAX_SLEEP_TIME = 40
|
76 |
def load_tools():
|
77 |
global valid_tools_info
|
78 |
global all_tools_list
|
|
|
154 |
chat_history += "Answer:" + inter['output'] + "\n"
|
155 |
result_str.append("...")
|
156 |
else:
|
157 |
+
try:
|
158 |
+
not_observation = inter[0].log
|
159 |
+
except:
|
160 |
+
print(inter[0])
|
161 |
+
not_observation = inter[0]
|
162 |
if not not_observation.startswith('Thought:'):
|
163 |
not_observation = "Thought: " + not_observation
|
164 |
chat_history += not_observation
|