Sethblocks commited on
Commit
84267b2
1 Parent(s): aac7f28

fix gpu delay

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -157,7 +157,7 @@ with gr.Blocks() as demo:
157
  msgsview.append((None, msg["content"]))
158
  if canContinue == True:
159
  tts.tts_to_file(nmsg.removeprefix("llama: ").removeprefix("berry: ") , speaker="p243")#f243 m241
160
- while time.time() < strt - autime:
161
  pass
162
  try:
163
  autime = librosa.get_duration("output.wav")
 
157
  msgsview.append((None, msg["content"]))
158
  if canContinue == True:
159
  tts.tts_to_file(nmsg.removeprefix("llama: ").removeprefix("berry: ") , speaker="p243")#f243 m241
160
+ while time.time() < strt + autime:
161
  pass
162
  try:
163
  autime = librosa.get_duration("output.wav")