Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
@@ -74,14 +74,14 @@ def execute_jupyter_agent(
|
|
74 |
# Initialize message_history if it doesn't exist
|
75 |
if len(message_history) == 0:
|
76 |
if files is None:
|
77 |
-
|
78 |
else:
|
79 |
-
sytem_prompt.format("- " + "\n- ".join(filenames))
|
80 |
|
81 |
message_history.append(
|
82 |
{
|
83 |
"role": "system",
|
84 |
-
"content":
|
85 |
}
|
86 |
)
|
87 |
message_history.append({"role": "user", "content": user_input})
|
|
|
74 |
# Initialize message_history if it doesn't exist
|
75 |
if len(message_history) == 0:
|
76 |
if files is None:
|
77 |
+
sytem_prompt = sytem_prompt.format("- None")
|
78 |
else:
|
79 |
+
sytem_prompt = sytem_prompt.format("- " + "\n- ".join(filenames))
|
80 |
|
81 |
message_history.append(
|
82 |
{
|
83 |
"role": "system",
|
84 |
+
"content": sytem_prompt,
|
85 |
}
|
86 |
)
|
87 |
message_history.append({"role": "user", "content": user_input})
|