Update app.py
Browse files
app.py
CHANGED
@@ -385,8 +385,7 @@ async def data_mode():
|
|
385 |
|
386 |
with st.chat_message("assistant"):
|
387 |
async with CodeInterpreterSession() as session:
|
388 |
-
|
389 |
-
#! 可以用设定dpi=300来输出高质量的图表。(注:图的解析度dpi设定为300)
|
390 |
environ_settings = """【背景要求】如果我没有告诉你任何定制化的要求,那么请你按照以下的默认要求来回答:
|
391 |
-------------------------------------------------------------------------
|
392 |
1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
|
@@ -407,6 +406,7 @@ async def data_mode():
|
|
407 |
user_request = environ_settings + "\n\n" + \
|
408 |
"你需要完成以下任务:\n\n" + prompt + "\n\n" \
|
409 |
f"注:文件位置在 {uploaded_file_path}"
|
|
|
410 |
user_request = str(prompt)
|
411 |
print('user_request: \n', user_request)
|
412 |
|
|
|
385 |
|
386 |
with st.chat_message("assistant"):
|
387 |
async with CodeInterpreterSession() as session:
|
388 |
+
print('111')
|
|
|
389 |
environ_settings = """【背景要求】如果我没有告诉你任何定制化的要求,那么请你按照以下的默认要求来回答:
|
390 |
-------------------------------------------------------------------------
|
391 |
1. 你需要用提问的语言来回答(如:中文提问你就用中文来回答,英文提问你就用英文来回答)。
|
|
|
406 |
user_request = environ_settings + "\n\n" + \
|
407 |
"你需要完成以下任务:\n\n" + prompt + "\n\n" \
|
408 |
f"注:文件位置在 {uploaded_file_path}"
|
409 |
+
|
410 |
user_request = str(prompt)
|
411 |
print('user_request: \n', user_request)
|
412 |
|