jonathan-roos commited on
Commit
f3e9e57
1 Parent(s): 6de956c

Added changes to app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -1,7 +1,15 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs='text', outputs='text')
 
 
 
 
 
 
 
 
 
7
  iface.launch()
 
1
  import gradio as gr
2
+ from detector import bat_detector
3
 
 
 
4
 
5
+ def find_bats(input_img):
6
+ bats = bat_detector(input_img)
7
+ return bats + " bats found!"
8
+
9
+ iface = gr.Interface(
10
+ fn=find_bats,
11
+ inputs=gr.Image(shape=(640, 512)),
12
+ outputs='text'
13
+ )
14
+
15
  iface.launch()