Spaces:
Running
Running
Commit
·
b3be935
1
Parent(s):
8a049ba
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, voice_clea
|
|
174 |
t_latent=time.time()
|
175 |
gpt_cond_latent, _, speaker_embedding = model.get_conditioning_latents(audio_path=speaker_wav)
|
176 |
latent_calculation_time = time.time() - t_latent
|
177 |
-
metrics_text=f"Embedding calculation time: {latent_calculation_time:.2f} seconds\n"
|
178 |
|
179 |
wav_chunks = []
|
180 |
|
@@ -190,7 +190,7 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, voice_clea
|
|
190 |
for i, chunk in enumerate(chunks):
|
191 |
if first_chunk:
|
192 |
first_chunk_time = time.time() - t_inference
|
193 |
-
metrics_text+=f"Latency to first audio chunk: {round(first_chunk_time*1000)}
|
194 |
first_chunk=False
|
195 |
|
196 |
|
|
|
174 |
t_latent=time.time()
|
175 |
gpt_cond_latent, _, speaker_embedding = model.get_conditioning_latents(audio_path=speaker_wav)
|
176 |
latent_calculation_time = time.time() - t_latent
|
177 |
+
##metrics_text=f"Embedding calculation time: {latent_calculation_time:.2f} seconds\n"
|
178 |
|
179 |
wav_chunks = []
|
180 |
|
|
|
190 |
for i, chunk in enumerate(chunks):
|
191 |
if first_chunk:
|
192 |
first_chunk_time = time.time() - t_inference
|
193 |
+
metrics_text+=f"Latency to first audio chunk: {round(first_chunk_time*1000)} milliseconds\n"
|
194 |
first_chunk=False
|
195 |
|
196 |
|