Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,12 +25,12 @@ def transcribe(audio_file):
|
|
25 |
return transcription
|
26 |
|
27 |
#define a function to process your input and output
|
28 |
-
def zero_shot(doc, candidates
|
29 |
given_labels = candidates.split(", ")
|
30 |
dictionary = classifier(doc, given_labels)
|
31 |
labels = dictionary['labels']
|
32 |
scores = dictionary['scores']
|
33 |
-
print("here is the audio transcribed: ", aud)
|
34 |
return dict(zip(labels, scores))
|
35 |
|
36 |
|
|
|
25 |
return transcription
|
26 |
|
27 |
#define a function to process your input and output
|
28 |
+
def zero_shot(doc, candidates):
|
29 |
given_labels = candidates.split(", ")
|
30 |
dictionary = classifier(doc, given_labels)
|
31 |
labels = dictionary['labels']
|
32 |
scores = dictionary['scores']
|
33 |
+
# print("here is the audio transcribed: ", aud)
|
34 |
return dict(zip(labels, scores))
|
35 |
|
36 |
|