shukdevdatta123 commited on
Commit
1b5d577
·
verified ·
1 Parent(s): df5f9ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def transcribe_audio(audio_buffer):
102
  # Romanize (convert to Romanji) if the language is Japanese
103
  def romanize_text(text, lang_code):
104
  if lang_code == 'j': # Japanese language code
105
- return romkan.to_romaji(text)
106
  return text # No need for Romanization for other languages
107
 
108
  # Generate and display the audio file
 
102
  # Romanize (convert to Romanji) if the language is Japanese
103
  def romanize_text(text, lang_code):
104
  if lang_code == 'j': # Japanese language code
105
+ return romkan.romaji(text) # Correct method to use
106
  return text # No need for Romanization for other languages
107
 
108
  # Generate and display the audio file