shaikrabbani-dev commited on
Commit
d32ae50
·
verified ·
1 Parent(s): a7a7d5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,7 +83,7 @@ def clone_and_speak(text):
83
  f5tts = F5TTS()
84
 
85
  if auto_reference_text is None:
86
- auto_reference_text = "Hi, my name is Rabani. I am software engineering the Gamana solution."
87
 
88
  result = f5tts.infer(
89
  ref_file=voice_file,
@@ -132,9 +132,9 @@ def chatbot_engine(text_input, audio_input):
132
  ref_result = whisper_model.transcribe(voice_file, fp16=False)
133
  auto_reference_text = ref_result["text"].strip()
134
  if not auto_reference_text:
135
- auto_reference_text = "Hi, my name is Rabani. I am software engineering the Gamana solution."
136
  except Exception:
137
- auto_reference_text = "Hi, my name is Rabani. I am software engineering the Gamana solution."
138
 
139
  if audio_input is not None:
140
  user_transcription = whisper_model.transcribe(audio_input, fp16=False)
 
83
  f5tts = F5TTS()
84
 
85
  if auto_reference_text is None:
86
+ auto_reference_text = "Hi, my name is Rabani. I am software engineering in the Gamana solution."
87
 
88
  result = f5tts.infer(
89
  ref_file=voice_file,
 
132
  ref_result = whisper_model.transcribe(voice_file, fp16=False)
133
  auto_reference_text = ref_result["text"].strip()
134
  if not auto_reference_text:
135
+ auto_reference_text = "Hi, my name is Rabani. I am software engineering in the Gamana solution."
136
  except Exception:
137
+ auto_reference_text = "Hi, my name is Rabani. I am software engineering in the Gamana solution."
138
 
139
  if audio_input is not None:
140
  user_transcription = whisper_model.transcribe(audio_input, fp16=False)