Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def display_df_as_table(model,top_k,score='score'):
|
|
36 |
def asr(audio):
|
37 |
|
38 |
asr_model = whisper.load_model("base")
|
39 |
-
results =
|
40 |
query = results['text']
|
41 |
|
42 |
return query
|
|
|
36 |
def asr(audio):
|
37 |
|
38 |
asr_model = whisper.load_model("base")
|
39 |
+
results = asr_model.transcribe(audio)
|
40 |
query = results['text']
|
41 |
|
42 |
return query
|