shukdevdatta123 commited on
Commit
43e6fe5
·
verified ·
1 Parent(s): 5702b6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import streamlit as st
2
  import time
 
3
 
4
  # Bubble Sort Algorithm with animation
5
  def bubble_sort(arr):
@@ -106,6 +107,9 @@ def main():
106
  3. Repeat this for each pair of adjacent elements in the array.
107
  4. Continue until no more swaps are needed.
108
  """)
 
 
 
109
 
110
  elif algorithm == "Insertion Sort":
111
  st.subheader("Insertion Sort Explanation")
 
1
  import streamlit as st
2
  import time
3
+ from PIL import Image
4
 
5
  # Bubble Sort Algorithm with animation
6
  def bubble_sort(arr):
 
107
  3. Repeat this for each pair of adjacent elements in the array.
108
  4. Continue until no more swaps are needed.
109
  """)
110
+
111
+ image = Image.open("bubble-short.png") # Path to your image file
112
+ st.image(image, use_container_width=True)
113
 
114
  elif algorithm == "Insertion Sort":
115
  st.subheader("Insertion Sort Explanation")