Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,8 @@ def transcribe_hindi_old(audio):
|
|
| 32 |
# # Process the audio file
|
| 33 |
transcript = transcriber_hindi_old(audio)
|
| 34 |
text_value = transcript['text']
|
| 35 |
-
|
|
|
|
| 36 |
replaced_words = replace_words(processd_doubles)
|
| 37 |
converted_text=text_to_int(replaced_words)
|
| 38 |
return converted_text
|
|
|
|
| 32 |
# # Process the audio file
|
| 33 |
transcript = transcriber_hindi_old(audio)
|
| 34 |
text_value = transcript['text']
|
| 35 |
+
cleaned_text=text_value.replace("<s>","")
|
| 36 |
+
processd_doubles=process_doubles(cleaned_text)
|
| 37 |
replaced_words = replace_words(processd_doubles)
|
| 38 |
converted_text=text_to_int(replaced_words)
|
| 39 |
return converted_text
|