wq2012 commited on
Commit
1193fe2
·
verified ·
1 Parent(s): 7a12ef3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(