Spaces:
Running
Running
Update app.py
Browse files
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.
|
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.to_roma(text) # Correct method to use
|
106 |
return text # No need for Romanization for other languages
|
107 |
|
108 |
# Generate and display the audio file
|