Arafath10 commited on
Commit
3dfe7ef
1 Parent(s): 2fd10b1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
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}