csukuangfj
commited on
Commit
·
32359c0
1
Parent(s):
f80684a
Minor fixes
Browse files
app.py
CHANGED
@@ -159,8 +159,14 @@ def process(
|
|
159 |
info = f"""
|
160 |
Wave duration : {duration: .3f} s <br/>
|
161 |
Processing time: {end - start: .3f} s <br/>
|
162 |
-
RTF: {end - start: .3f}/{duration: .3f} = {
|
163 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
logging.info(info)
|
165 |
logging.info(f"hyp:\n{hyp}")
|
166 |
|
|
|
159 |
info = f"""
|
160 |
Wave duration : {duration: .3f} s <br/>
|
161 |
Processing time: {end - start: .3f} s <br/>
|
162 |
+
RTF: {end - start: .3f}/{duration: .3f} = {rtf:.3f} <br/>
|
163 |
"""
|
164 |
+
if rtf > 1:
|
165 |
+
info += (
|
166 |
+
f"<br/>We are loading the model for the first run. "
|
167 |
+
"Please run again to measure the real RTF.<br/>"
|
168 |
+
)
|
169 |
+
|
170 |
logging.info(info)
|
171 |
logging.info(f"hyp:\n{hyp}")
|
172 |
|