kumar989 commited on
Commit
663894d
·
1 Parent(s): 25515ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -8
app.py CHANGED
@@ -20,15 +20,24 @@ def predict():
20
  st.write(c)
21
 
22
  st.title('Image Captioner')
23
- img_url = st.text_input(label='Enter Image URL')
 
 
 
 
 
 
 
 
 
24
 
25
- if (img_url != "") and (img_url != None):
26
- img = Image.open(requests.get(img_url, stream=True).raw)
27
- img = img.convert('RGB')
28
- st.image(img)
29
- img.save('tmp.jpg')
30
- predict()
31
- os.remove('tmp.jpg')
32
 
33
  hide_streamlit_style = """
34
  <style>
 
20
  st.write(c)
21
 
22
  st.title('Image Captioner')
23
+ st.markdown('##What we can do?')
24
+ st.write('-Detect Brain tumors')
25
+ st.write('-Detect Pnuemonia')
26
+ st.write('-Detect Bone Fractures')
27
+ st.write('-Detect Skin infections')
28
+ st.write('-Detect Kidney Stones')
29
+ st.write('-Detect Eye infections')
30
+ st.write('')
31
+ st.write('(Note:The results may not be correct always its better to have a second opnion)')
32
+ # img_url = st.text_input(label='Enter Image URL')
33
 
34
+ # if (img_url != "") and (img_url != None):
35
+ # img = Image.open(requests.get(img_url, stream=True).raw)
36
+ # img = img.convert('RGB')
37
+ # st.image(img)
38
+ # img.save('tmp.jpg')
39
+ # predict()
40
+ # os.remove('tmp.jpg')
41
 
42
  hide_streamlit_style = """
43
  <style>