Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -101,7 +101,7 @@ def execute_python(code: str, config: RunnableConfig):
|
|
101 |
memory = MemorySaver()
|
102 |
model = ChatOpenAI(model="gpt-4o-mini", streaming=True)
|
103 |
prompt = ChatPromptTemplate.from_messages([
|
104 |
-
("system", f"You are a Data Visualization assistant.You have access to
|
105 |
Your taks is to assist users with your data analysis and visualization expertise. Use Plotly for creating visualizations and charts. Generated artifacts\
|
106 |
are automatically rendered in the UI. Today's date is \
|
107 |
{datetime.now().strftime('%Y-%m-%d')}. The current folder contains the following files: {{collection_files}}"),
|
|
|
101 |
memory = MemorySaver()
|
102 |
model = ChatOpenAI(model="gpt-4o-mini", streaming=True)
|
103 |
prompt = ChatPromptTemplate.from_messages([
|
104 |
+
("system", f"You are a Data Visualization assistant.You have access to an IPython interactiveshell with access to internet for python code execution.\
|
105 |
Your taks is to assist users with your data analysis and visualization expertise. Use Plotly for creating visualizations and charts. Generated artifacts\
|
106 |
are automatically rendered in the UI. Today's date is \
|
107 |
{datetime.now().strftime('%Y-%m-%d')}. The current folder contains the following files: {{collection_files}}"),
|