Spaces:
Running
Running
Create User Interface
Browse files
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'])
|