Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
9333506
1
Parent(s):
ec191f4
Removed exception handling (for now)
Browse files
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 |
-
|
86 |
-
|
|
|
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 |
|