Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
chat_history.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:513379f0dd190e5eff19f6ce4ad5c28f0b4370ef13ee37a73ff69010febe111e
|
3 |
+
size 1671168
|
controllers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -31,15 +31,15 @@ def format_response(chunk, full_response):
|
|
31 |
full_response += "```\n"
|
32 |
|
33 |
# Console
|
34 |
-
if chunk["type"] == "
|
35 |
if chunk.get("start", False):
|
36 |
full_response += "```python\n"
|
37 |
if chunk.get("format", "") == "active_line":
|
38 |
-
console_content = chunk.get("content", "")
|
39 |
if console_content is None:
|
40 |
full_response += "No output available on console."
|
41 |
if chunk.get("format", "") == "output":
|
42 |
-
console_content = chunk.get("content", "")
|
43 |
full_response += console_content
|
44 |
if chunk.get("end", False):
|
45 |
full_response += "\n```\n"
|
|
|
31 |
full_response += "```\n"
|
32 |
|
33 |
# Console
|
34 |
+
if chunk["type"] == "console":
|
35 |
if chunk.get("start", False):
|
36 |
full_response += "```python\n"
|
37 |
if chunk.get("format", "") == "active_line":
|
38 |
+
console_content = chunk.get("content", "").replace("`", "")
|
39 |
if console_content is None:
|
40 |
full_response += "No output available on console."
|
41 |
if chunk.get("format", "") == "output":
|
42 |
+
console_content = chunk.get("content", "").replace("`", "")
|
43 |
full_response += console_content
|
44 |
if chunk.get("end", False):
|
45 |
full_response += "\n```\n"
|