Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ client = InferenceClient(
|
|
33 |
|
34 |
|
35 |
VERBOSE = True
|
36 |
-
MAX_HISTORY =
|
37 |
#MODEL = "gpt-3.5-turbo" # "gpt-4"
|
38 |
|
39 |
|
@@ -231,7 +231,7 @@ def run_action(purpose, task, history, directory, action_name, action_input):
|
|
231 |
return "MAIN", None, history, task
|
232 |
|
233 |
def run(purpose,history):
|
234 |
-
|
235 |
#print(purpose)
|
236 |
#print(hist)
|
237 |
task=None
|
|
|
33 |
|
34 |
|
35 |
VERBOSE = True
|
36 |
+
MAX_HISTORY = 1000
|
37 |
#MODEL = "gpt-3.5-turbo" # "gpt-4"
|
38 |
|
39 |
|
|
|
231 |
return "MAIN", None, history, task
|
232 |
|
233 |
def run(purpose,history):
|
234 |
+
purpose = format_prompt(purpose,history)
|
235 |
#print(purpose)
|
236 |
#print(hist)
|
237 |
task=None
|