Sobit commited on
Commit
faf288f
·
verified ·
1 Parent(s): 8d2b319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -202,8 +202,8 @@ if uploaded_file:
202
  # Translate the diagnosis to the target language
203
  translator = Translator()
204
  translated_text = translator.translate(diagnosis, dest=language).text
205
- # Filter out unwanted characters like '#' and '*'
206
- filtered_text = ''.join(c for c in translated_text if c not in ['#', '*'])
207
  # Now process the translated text for TTS
208
  audio_bytes = text_to_speech(filtered_text, language)
209
  if audio_bytes:
 
202
  # Translate the diagnosis to the target language
203
  translator = Translator()
204
  translated_text = translator.translate(diagnosis, dest=language).text
205
+ # Filter out unwanted characters like '#' and '*'
206
+ filtered_text = ''.join[c for c in translated_text if c not in ['#', '*']]
207
  # Now process the translated text for TTS
208
  audio_bytes = text_to_speech(filtered_text, language)
209
  if audio_bytes: