mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
rename outputs in app
This commit is contained in:
parent
9959356750
commit
441e2b6cce
3
app.py
3
app.py
@ -26,6 +26,7 @@ df = gr.Dataframe(
|
||||
datatype=["str", "str", "str", "str"],
|
||||
row_count=1,
|
||||
col_count=(4, "fixed"),
|
||||
label='Predictions'
|
||||
)
|
||||
|
||||
examples = [['example_data/audio/20170701_213954-MYOMYS-LR_0_0.5.wav', 0.3],
|
||||
@ -96,7 +97,7 @@ gr.Interface(
|
||||
fn = make_prediction,
|
||||
inputs = [gr.Audio(source="upload", type="filepath", optional=True),
|
||||
gr.Dropdown([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])],
|
||||
outputs = [df, "image"],
|
||||
outputs = [df, gr.Image(label="Visualisation")],
|
||||
theme = "huggingface",
|
||||
title = "BatDetect2 Demo",
|
||||
description = descr_txt,
|
||||
|
Loading…
Reference in New Issue
Block a user