andito HF Staff commited on
Commit
9f9a831
·
verified ·
1 Parent(s): 45671ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -258,13 +258,13 @@ class GlobalState:
258
  if video_stats["count"] > 0:
259
  lines.append(
260
  f"📹 Video: {video_stats['latest']:.0f}ms "
261
- f"(avg: {video_stats['avg']:.0f}ms)"
262
  )
263
 
264
  if audio_stats["count"] > 0:
265
  lines.append(
266
  f"🎵 Audio: {audio_stats['latest']:.0f}ms "
267
- f"(avg: {audio_stats['avg']:.0f}ms)"
268
  )
269
 
270
  if not lines:
@@ -824,13 +824,17 @@ CUSTOM_CSS = """
824
  font-weight: 500 !important;
825
  font-family: monospace !important;
826
  padding: 0 !important;
827
- min-height: unset !important;
828
  height: auto !important;
 
829
  line-height: 1.4 !important;
830
- white-space: pre !important;
831
- overflow: hidden !important;
832
  resize: none !important;
833
  }
 
 
 
834
  #latency-box .scroll-hide {
835
  scrollbar-width: none !important;
836
  }
 
258
  if video_stats["count"] > 0:
259
  lines.append(
260
  f"📹 Video: {video_stats['latest']:.0f}ms "
261
+ f"(avg: {video_stats['avg']:.0f}ms, max: {video_stats['max']:.0f}ms)"
262
  )
263
 
264
  if audio_stats["count"] > 0:
265
  lines.append(
266
  f"🎵 Audio: {audio_stats['latest']:.0f}ms "
267
+ f"(avg: {audio_stats['avg']:.0f}ms, max: {audio_stats['max']:.0f}ms)"
268
  )
269
 
270
  if not lines:
 
824
  font-weight: 500 !important;
825
  font-family: monospace !important;
826
  padding: 0 !important;
827
+ min-height: 2.5rem !important;
828
  height: auto !important;
829
+ max-height: 4rem !important;
830
  line-height: 1.4 !important;
831
+ white-space: pre-wrap !important;
832
+ overflow-y: auto !important;
833
  resize: none !important;
834
  }
835
+ #latency-box textarea::-webkit-scrollbar {
836
+ display: none !important;
837
+ }
838
  #latency-box .scroll-hide {
839
  scrollbar-width: none !important;
840
  }