bvallegc commited on
Commit
3ae298e
·
1 Parent(s): d5e6332

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,7 +17,9 @@ def classify_audio(filepath):
17
  """
18
  preds = pipe(filepath)
19
  classification = [{"label": p["label"], "score": p["score"]} for p in preds]
20
- return {"classification": classification}
 
 
21
 
22
 
23
  interface_options = {
 
17
  """
18
  preds = pipe(filepath)
19
  classification = [{"label": p["label"], "score": p["score"]} for p in preds]
20
+ label = classification[0]["label"]
21
+ number = classification[0]["score"]
22
+ return label, number
23
 
24
 
25
  interface_options = {