Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
|
4 |
-
def
|
5 |
-
#
|
6 |
-
|
7 |
-
st.image(img)
|
8 |
|
9 |
-
gr.Interface(
|
|
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
|
4 |
+
def image_predict(image):
|
5 |
+
# ... code to predict the class of the image goes here...
|
6 |
+
pass
|
|
|
7 |
|
8 |
+
iface = gr.Interface(fn=image_predict, inputs="image", outputs="label")
|
9 |
+
iface.launch()
|