sotirios-slv commited on
Commit
9333506
1 Parent(s): ec191f4

Removed exception handling (for now)

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -77,13 +77,10 @@ def diff_texts(diction_text: str, audio_input: str):
77
 
78
 
79
  def transcribe_audio(diction_text, audio):
80
- try:
81
- result = pipe(audio)
82
- diff_text = diff_texts(diction_text, result["text"])
83
- score = 100
84
 
85
- except Exception as e:
86
- raise gr.Error(f"Uh oh and error occurred: {e}", duration=5)
 
87
 
88
  return diff_text, f"{score}%"
89
 
 
77
 
78
 
79
  def transcribe_audio(diction_text, audio):
 
 
 
 
80
 
81
+ result = pipe(audio)
82
+ diff_text = diff_texts(diction_text, result["text"])
83
+ score = 100
84
 
85
  return diff_text, f"{score}%"
86