Spaces:
Build error
Build error
Vlad Bastina commited on
Commit ·
9b4d08e
1
Parent(s): cd3283b
readability changes
Browse files- app_generated.py +1 -0
app_generated.py
CHANGED
|
@@ -181,6 +181,7 @@ def generate_plot_code(question, dataframe, model_name="gpt-4o"):
|
|
| 181 |
8. If the data includes categories (e.g., sucursale, produse, pachete), ensure these are fully represented across the plots (e.g., bar charts, pie charts, or grouped visuals).
|
| 182 |
9. If the data includes numerical values (e.g., sales, totals), use appropriate plot types (e.g., bar, line, or scatter) to show trends, comparisons, or distributions.
|
| 183 |
10. If the question involves time periods, ensure at least one visualization reflects the temporal aspect using the relevant date information.
|
|
|
|
| 184 |
|
| 185 |
**Output Format:**
|
| 186 |
Your code should ONLY include a function called `create_plots(data)` that takes a pandas DataFrame as input and returns a list of tuples containing the plot titles and the base64-encoded images.
|
|
|
|
| 181 |
8. If the data includes categories (e.g., sucursale, produse, pachete), ensure these are fully represented across the plots (e.g., bar charts, pie charts, or grouped visuals).
|
| 182 |
9. If the data includes numerical values (e.g., sales, totals), use appropriate plot types (e.g., bar, line, or scatter) to show trends, comparisons, or distributions.
|
| 183 |
10. If the question involves time periods, ensure at least one visualization reflects the temporal aspect using the relevant date information.
|
| 184 |
+
11. Put a padding to the plots so there won't be situations like "an Francisco" is displayed instead of "San Francisco".
|
| 185 |
|
| 186 |
**Output Format:**
|
| 187 |
Your code should ONLY include a function called `create_plots(data)` that takes a pandas DataFrame as input and returns a list of tuples containing the plot titles and the base64-encoded images.
|