Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -64,6 +64,7 @@ async def get_image_for_text(email,query,file: UploadFile = File(...)):
|
|
| 64 |
try:
|
| 65 |
sdf = SmartDataframe(df, config={"llm": llm})
|
| 66 |
sdf.chat(query)
|
|
|
|
| 67 |
image_path = "exports/charts/temp_chart.png" # Replace with your image's path
|
| 68 |
base64str = convert_image_to_base64(image_path)
|
| 69 |
return {"id":str(uuid1),"image":base64str}
|
|
|
|
| 64 |
try:
|
| 65 |
sdf = SmartDataframe(df, config={"llm": llm})
|
| 66 |
sdf.chat(query)
|
| 67 |
+
print(df.head())
|
| 68 |
image_path = "exports/charts/temp_chart.png" # Replace with your image's path
|
| 69 |
base64str = convert_image_to_base64(image_path)
|
| 70 |
return {"id":str(uuid1),"image":base64str}
|