Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def run_gpt(
|
|
58 |
repetition_penalty=1.0,
|
59 |
do_sample=True,
|
60 |
seed=seed,
|
61 |
-
)
|
62 |
|
63 |
|
64 |
content = PREFIX.format(
|
@@ -197,7 +197,7 @@ def call_set_task(purpose, task, history, directory, action_input):
|
|
197 |
purpose=purpose,
|
198 |
task=task,
|
199 |
history=history,
|
200 |
-
)
|
201 |
history += "observation: task has been updated to: {}\n".format(task)
|
202 |
return "MAIN", None, history, task
|
203 |
|
|
|
58 |
repetition_penalty=1.0,
|
59 |
do_sample=True,
|
60 |
seed=seed,
|
61 |
+
)
|
62 |
|
63 |
|
64 |
content = PREFIX.format(
|
|
|
197 |
purpose=purpose,
|
198 |
task=task,
|
199 |
history=history,
|
200 |
+
).strip("\n")
|
201 |
history += "observation: task has been updated to: {}\n".format(task)
|
202 |
return "MAIN", None, history, task
|
203 |
|