Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def main():
|
|
33 |
{
|
34 |
"role": "system",
|
35 |
"content": (
|
36 |
-
"The user will ask you a tricky question, your job is to write Python code to answer the question. \n\n" +
|
37 |
"Really think step by step before writing any code to ensure you're answering the question correctly. \n\n" +
|
38 |
"Respond with a markdown code block starting with ```python and ``` at the end. Make sure the code can be executed without any changes"
|
39 |
),
|
@@ -96,7 +96,7 @@ def get_assistant_response(conversation, use_code_interpreter):
|
|
96 |
stop=None,
|
97 |
)
|
98 |
assistant_reply = completion.choices[0].message.content
|
99 |
-
|
100 |
# If code interpreter is enabled, check for code in assistant's reply
|
101 |
if use_code_interpreter:
|
102 |
code = extract_code(assistant_reply)
|
|
|
33 |
{
|
34 |
"role": "system",
|
35 |
"content": (
|
36 |
+
"The user will ask you a tricky question, your job is to write Python code to answer the question. you have to do this to answer each question \n\n" +
|
37 |
"Really think step by step before writing any code to ensure you're answering the question correctly. \n\n" +
|
38 |
"Respond with a markdown code block starting with ```python and ``` at the end. Make sure the code can be executed without any changes"
|
39 |
),
|
|
|
96 |
stop=None,
|
97 |
)
|
98 |
assistant_reply = completion.choices[0].message.content
|
99 |
+
print(assistant_reply)
|
100 |
# If code interpreter is enabled, check for code in assistant's reply
|
101 |
if use_code_interpreter:
|
102 |
code = extract_code(assistant_reply)
|