Arafath10 commited on
Commit
9afa6dc
1 Parent(s): d45bf32

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -6
main.py CHANGED
@@ -37,12 +37,6 @@ def convert_image_to_base64(image_path):
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("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
 
47
  @app.post("/get_image_for_text")
48
  async def get_image_for_text(email,query,file: UploadFile = File(...)):
 
37
  img_base64_string = img_base64.decode("utf-8")
38
  return img_base64_string
39
 
 
 
 
 
 
 
40
 
41
  @app.post("/get_image_for_text")
42
  async def get_image_for_text(email,query,file: UploadFile = File(...)):