Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|