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:baadb224136d4f40728d8874219d413868e653e2449cb4a910739e0e4357423e
|
3 |
+
size 1675264
|
controllers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -5,12 +5,10 @@ import mysite.interpreter.interpreter_config # インポートするだけで
|
|
5 |
import duckdb
|
6 |
#from logger import logger
|
7 |
|
8 |
-
|
9 |
-
|
10 |
def format_response(chunk, full_response):
|
11 |
# Message
|
12 |
if chunk["type"] == "message":
|
13 |
-
full_response += chunk.get("content", "")
|
14 |
if chunk.get("end", False):
|
15 |
full_response += "\n"
|
16 |
|
@@ -35,11 +33,11 @@ def format_response(chunk, full_response):
|
|
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"
|
|
|
5 |
import duckdb
|
6 |
#from logger import logger
|
7 |
|
|
|
|
|
8 |
def format_response(chunk, full_response):
|
9 |
# Message
|
10 |
if chunk["type"] == "message":
|
11 |
+
full_response += chunk.get("content", "").replace("`", "")
|
12 |
if chunk.get("end", False):
|
13 |
full_response += "\n"
|
14 |
|
|
|
33 |
if chunk.get("start", False):
|
34 |
full_response += "```python\n"
|
35 |
if chunk.get("format", "") == "active_line":
|
36 |
+
console_content = chunk.get("content", "")
|
37 |
if console_content is None:
|
38 |
full_response += "No output available on console."
|
39 |
if chunk.get("format", "") == "output":
|
40 |
+
console_content = chunk.get("content", "")
|
41 |
full_response += console_content
|
42 |
if chunk.get("end", False):
|
43 |
full_response += "\n```\n"
|