raj999 commited on
Commit
5331d9c
1 Parent(s): fb6d47a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -1,4 +1,15 @@
1
- import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
1
+ import gradio as gr
2
+
3
+ def upload_image(image):
4
+ return image
5
+
6
+ iface = gr.Interface(
7
+ fn=upload_image,
8
+ inputs=gr.Image(type="jpg"),
9
+ outputs="image",
10
+ title="Image Uploader",
11
+ description="Upload an image and see the result below."
12
+ )
13
+
14
+ iface.launch()
15