fbrynpk commited on
Commit
0206028
1 Parent(s): bcb9744

Create User Interface

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import io
2
+ import os
3
+ import streamlit as st
4
+ import requests
5
+ from PIL import Image
6
+
7
+ st.title('Image-Caption-Generator')
8
+ img_url = st.text_input(label='Enter an Image URL')
9
+
10
+ st.markdown('<center style="opacity: 70%">OR</center>', unsafe_allow_html=True)
11
+ img_upload = st.file_uploader(label='Upload Image', type=['jpg', 'png', 'jpeg'])