Update main.py
Browse files
main.py
CHANGED
@@ -36,7 +36,8 @@ def convert_image_to_base64(image_path):
|
|
36 |
img_base64 = base64.b64encode(img_bytes)
|
37 |
img_base64_string = img_base64.decode("utf-8")
|
38 |
return img_base64_string
|
39 |
-
|
|
|
40 |
df = pd.read_csv("233.csv")
|
41 |
sdf = SmartDataframe(df, config={"llm": llm})
|
42 |
sdf.chat(query)
|
|
|
36 |
img_base64 = base64.b64encode(img_bytes)
|
37 |
img_base64_string = img_base64.decode("utf-8")
|
38 |
return img_base64_string
|
39 |
+
|
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(query)
|