Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,6 @@ agent = CodeAgent(
|
|
| 53 |
additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn"]
|
| 54 |
)
|
| 55 |
|
| 56 |
-
# Define the analysis instructions
|
| 57 |
analysis_result = agent.run(
|
| 58 |
"""
|
| 59 |
You are an expert data analyst. Perform comprehensive analysis including:
|
|
@@ -64,8 +63,8 @@ analysis_result = agent.run(
|
|
| 64 |
Generate publication-quality visualizations and save them to './figures/'.
|
| 65 |
""",
|
| 66 |
additional_args={
|
| 67 |
-
"additional_notes": additional_notes, #
|
| 68 |
-
"source_file":
|
| 69 |
}
|
| 70 |
)
|
| 71 |
|
|
|
|
| 53 |
additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn"]
|
| 54 |
)
|
| 55 |
|
|
|
|
| 56 |
analysis_result = agent.run(
|
| 57 |
"""
|
| 58 |
You are an expert data analyst. Perform comprehensive analysis including:
|
|
|
|
| 63 |
Generate publication-quality visualizations and save them to './figures/'.
|
| 64 |
""",
|
| 65 |
additional_args={
|
| 66 |
+
"additional_notes": additional_notes, # Pass additional notes
|
| 67 |
+
"source_file": file.name # Use the uploaded file's path
|
| 68 |
}
|
| 69 |
)
|
| 70 |
|