ayaanzaveri commited on
Commit
131ddd2
1 Parent(s): 6452d66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,17 +21,17 @@ my_bar = st.progress(0)
21
 
22
  img_url = st.text_input('Image URL', 'https://images.unsplash.com/photo-1556911220-bff31c812dba?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2468&q=80')
23
 
24
- my_bar.progress(percent_complete + 20)
25
 
26
  img_data = requests.get(img_url).content
27
  with open('detect.jpg', 'wb') as handler:
28
  handler.write(img_data)
29
 
30
- my_bar.progress(percent_complete + 40)
31
 
32
  output = pipe(img_url)
33
 
34
- my_bar.progress(percent_complete + 20)
35
 
36
  fpath = "Poppins-SemiBold.ttf"
37
  prop = font_manager.FontProperties(fname=fpath)
@@ -65,4 +65,4 @@ st.image(image, caption='DETR Image')
65
 
66
  plt.show()
67
 
68
- my_bar.progress(percent_complete + 20)
 
21
 
22
  img_url = st.text_input('Image URL', 'https://images.unsplash.com/photo-1556911220-bff31c812dba?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2468&q=80')
23
 
24
+ my_bar.progress(20)
25
 
26
  img_data = requests.get(img_url).content
27
  with open('detect.jpg', 'wb') as handler:
28
  handler.write(img_data)
29
 
30
+ my_bar.progress(60)
31
 
32
  output = pipe(img_url)
33
 
34
+ my_bar.progress(80)
35
 
36
  fpath = "Poppins-SemiBold.ttf"
37
  prop = font_manager.FontProperties(fname=fpath)
 
65
 
66
  plt.show()
67
 
68
+ my_bar.progress(100)