Wajahat698 commited on
Commit
3c15b19
·
verified ·
1 Parent(s): 7c49c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -634,6 +634,12 @@ def side():
634
  """,
635
  unsafe_allow_html=True,
636
  )
 
 
 
 
 
 
637
 
638
  # Create HTML structure for images and hover text
639
  image_html = '<div class="image-container">'
@@ -655,12 +661,7 @@ def side():
655
  # Display images in the Streamlit app
656
  st.markdown(image_html, unsafe_allow_html=True)
657
 
658
- # Function to convert an image to base64
659
- def image_to_base64(img):
660
- from io import BytesIO
661
- buffer = BytesIO()
662
- img.save(buffer, format="PNG")
663
- return buffer.getvalue().encode("base64").decode()
664
 
665
 
666
 
 
634
  """,
635
  unsafe_allow_html=True,
636
  )
637
+ # Function to convert an image to base64
638
+ def image_to_base64(img):
639
+ from io import BytesIO
640
+ buffer = BytesIO()
641
+ img.save(buffer, format="PNG")
642
+ return buffer.getvalue().encode("base64").decode()
643
 
644
  # Create HTML structure for images and hover text
645
  image_html = '<div class="image-container">'
 
661
  # Display images in the Streamlit app
662
  st.markdown(image_html, unsafe_allow_html=True)
663
 
664
+
 
 
 
 
 
665
 
666
 
667