Update main.py
Browse files
main.py
CHANGED
@@ -51,6 +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 Exception as e
|
55 |
print(str(e))
|
56 |
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"
|