Spaces:
Running
on
Zero
Running
on
Zero
XXXXRT666
commited on
Commit
·
721cd24
1
Parent(s):
ecf1166
GPT_SoVITS/inference_webui.py
CHANGED
|
@@ -9,7 +9,7 @@ import warnings
|
|
| 9 |
import zipfile
|
| 10 |
from functools import partial
|
| 11 |
from pathlib import Path
|
| 12 |
-
from time import
|
| 13 |
from typing import Any
|
| 14 |
|
| 15 |
import gradio as gr
|
|
@@ -766,9 +766,9 @@ def get_tts_wav(
|
|
| 766 |
gr.Info(f"{rtf_value:.2f}", title="RTF")
|
| 767 |
|
| 768 |
if ttfb_time > 2:
|
| 769 |
-
gr.Info(f"
|
| 770 |
else:
|
| 771 |
-
gr.Info(f"
|
| 772 |
|
| 773 |
if torch.cuda.is_available():
|
| 774 |
torch.cuda.empty_cache()
|
|
|
|
| 9 |
import zipfile
|
| 10 |
from functools import partial
|
| 11 |
from pathlib import Path
|
| 12 |
+
from time import perf_counter as ttime
|
| 13 |
from typing import Any
|
| 14 |
|
| 15 |
import gradio as gr
|
|
|
|
| 766 |
gr.Info(f"{rtf_value:.2f}", title="RTF")
|
| 767 |
|
| 768 |
if ttfb_time > 2:
|
| 769 |
+
gr.Info(f"TTFB: {ttfb_time:.3f} s")
|
| 770 |
else:
|
| 771 |
+
gr.Info(f"TTFB: {ttfb_time * 1000:.3f} ms")
|
| 772 |
|
| 773 |
if torch.cuda.is_available():
|
| 774 |
torch.cuda.empty_cache()
|