kumar989 commited on
Commit
11da077
·
1 Parent(s): b170721

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -19,16 +19,16 @@ def predict():
19
  st.markdown('#### Predicted Captions:')
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>
 
19
  st.markdown('#### Predicted Captions:')
20
  st.write(c)
21
 
22
+ st.title('Health Vision')
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>