Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ runner = wav_to_lang.WavToLangRunner(
|
|
24 |
def predict(wav_file):
|
25 |
top_lang, probs = runner.wav_to_lang(wav_file)
|
26 |
top_lang_prob = np.max(probs)
|
27 |
-
return "Predicted language: " + top_lang + "\nProbability: " + top_lang_prob
|
28 |
|
29 |
if __name__ == "__main__":
|
30 |
demo = gr.Interface(
|
|
|
24 |
def predict(wav_file):
|
25 |
top_lang, probs = runner.wav_to_lang(wav_file)
|
26 |
top_lang_prob = np.max(probs)
|
27 |
+
return "Predicted language: " + top_lang + "\nProbability: " + str(top_lang_prob)
|
28 |
|
29 |
if __name__ == "__main__":
|
30 |
demo = gr.Interface(
|