Arafath10 commited on
Commit
a940aa8
1 Parent(s): 6122003

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -51,5 +51,6 @@ async def get_image_for_text(email,query,file: UploadFile = File(...)):
51
  image_path = "exports/charts/temp_chart.png" # Replace with your image's path
52
  base64str = convert_image_to_base64(image_path)
53
  return {"id":str(uuid1),"image":base64str}
54
- except:
 
55
  return "try again"
 
51
  image_path = "exports/charts/temp_chart.png" # Replace with your image's path
52
  base64str = convert_image_to_base64(image_path)
53
  return {"id":str(uuid1),"image":base64str}
54
+ except Exception as e
55
+ print(str(e))
56
  return "try again"