Thomas Chardonnens commited on
Commit
499ab24
1 Parent(s): a82273f

Add image input

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ def check_image(image):
4
+ # Placeholder logic - replace with actual image processing
5
+ return True # or False based on your criteria
6
 
7
+ demo = gr.Interface(fn=check_image, inputs="image", outputs="boolean")
8
  demo.launch()