Update main.py
Browse files
main.py
CHANGED
@@ -40,7 +40,7 @@ def convert_image_to_base64(image_path):
|
|
40 |
llm = OpenAI(api_token=secret,save_charts=True)
|
41 |
df = pd.read_csv("233.csv")
|
42 |
sdf = SmartDataframe(df, config={"llm": llm})
|
43 |
-
sdf.chat(
|
44 |
image_path = "exports/charts/temp_chart.png" # Replace with your image's path
|
45 |
base64str = convert_image_to_base64(image_path)
|
46 |
|
|
|
40 |
llm = OpenAI(api_token=secret,save_charts=True)
|
41 |
df = pd.read_csv("233.csv")
|
42 |
sdf = SmartDataframe(df, config={"llm": llm})
|
43 |
+
sdf.chat("give bar chart")
|
44 |
image_path = "exports/charts/temp_chart.png" # Replace with your image's path
|
45 |
base64str = convert_image_to_base64(image_path)
|
46 |
|