cdactvm commited on
Commit
e9e55e2
·
verified ·
1 Parent(s): 42f36ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -358,7 +358,7 @@ def transcribe_hindi(speech):
358
  text = text.replace(hindi, num)
359
 
360
  # Split the string into parts separated by spaces
361
- parts = asr_output.split(' ')
362
 
363
  # Initialize an empty list to store the processed parts
364
  processed_parts = []
@@ -379,7 +379,6 @@ def transcribe_hindi(speech):
379
  # Join the processed parts back into a string with spaces
380
  text = ' '.join(processed_parts)
381
 
382
-
383
  return text
384
 
385
  ###########################################################
 
358
  text = text.replace(hindi, num)
359
 
360
  # Split the string into parts separated by spaces
361
+ parts = text.split(' ')
362
 
363
  # Initialize an empty list to store the processed parts
364
  processed_parts = []
 
379
  # Join the processed parts back into a string with spaces
380
  text = ' '.join(processed_parts)
381
 
 
382
  return text
383
 
384
  ###########################################################