Anita-19 commited on
Commit
9d6989d
Β·
verified Β·
1 Parent(s): e82a4db

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -304,7 +304,7 @@ def emotion_aware_tts_pipeline(input_text=None, file_input=None):
304
  with open(file_input.name, 'r') as file:
305
  input_text = file.read()
306
 
307
- if input_text:
308
  # Detect emotion
309
  emotion_data = emotion_classifier(input_text)[0]
310
  emotion = emotion_data['label']
 
304
  with open(file_input.name, 'r') as file:
305
  input_text = file.read()
306
 
307
+ if input_text:
308
  # Detect emotion
309
  emotion_data = emotion_classifier(input_text)[0]
310
  emotion = emotion_data['label']