SFP commited on
Commit
a7a9bdc
1 Parent(s): fe15a96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  from PIL import Image
3
 
4
- def process_image(file):
5
- # Load and display the uploaded file
6
- img = Image.open(file)
7
- st.image(img)
8
 
9
- gr.Interface(process_image, inputs="file", outputs="img")
 
 
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()