Spaces:
Sleeping
Sleeping
acecalisto3
commited on
Commit
•
af96161
1
Parent(s):
9223902
Update app.py
Browse files
app.py
CHANGED
@@ -80,14 +80,10 @@ def call_search(purpose, task, history, directory, action_input):
|
|
80 |
else:
|
81 |
history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=https://URL'\n"
|
82 |
except Exception as e:
|
83 |
-
history += "{}\n".format(line
|
84 |
if "COMPLETE" in action_name or "COMPLETE" in action_input:
|
85 |
task = "END"
|
86 |
return action_name, action_input, history, task
|
87 |
-
else: # Indentation corrected here
|
88 |
-
history += "{}\n".format(line)
|
89 |
-
return "MAIN", None, history, task
|
90 |
-
|
91 |
def call_set_task(purpose, task, history, directory, action_input):
|
92 |
task = run_gpt(
|
93 |
TASK_PROMPT,
|
|
|
80 |
else:
|
81 |
history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=https://URL'\n"
|
82 |
except Exception as e:
|
83 |
+
history += "{}\n".format(e) # Fixing this line to include the exception message
|
84 |
if "COMPLETE" in action_name or "COMPLETE" in action_input:
|
85 |
task = "END"
|
86 |
return action_name, action_input, history, task
|
|
|
|
|
|
|
|
|
87 |
def call_set_task(purpose, task, history, directory, action_input):
|
88 |
task = run_gpt(
|
89 |
TASK_PROMPT,
|