File size: 298 Bytes
77e9330
f3e9e57
77e9330
f3e9e57
14451ff
 
f3e9e57
 
 
 
 
 
 
77e9330
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
from detector import bat_detector

def find_bats(input_img):
    bats, time = bat_detector(input_img)
    return f"{bats}" + " bats found in " + f"{time:.2f}s"

iface = gr.Interface(
    fn=find_bats, 
    inputs=gr.Image(shape=(640, 512)), 
    outputs='text'
)

iface.launch()