Joffrey Thomas commited on
Commit
077719c
·
1 Parent(s): d42b357

more sessions

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ WPM_WINDOW = 10 # seconds for running mean calculation
25
  CALIBRATION_PERIOD = 5 # seconds before showing WPM
26
  SESSION_TIMEOUT = int(os.environ.get("SESSION_TIMEOUT", "30")) # Max 30s per session
27
  INACTIVITY_TIMEOUT = int(os.environ.get("INACTIVITY_TIMEOUT", "10")) # Close after 10s silence
28
- MAX_CONCURRENT_SESSIONS = int(os.environ.get("MAX_SESSIONS", "40"))
29
 
30
  # Global config (shared across users)
31
  ws_url = ""
@@ -612,7 +612,7 @@ with gr.Blocks(title="Voxtral Real-time Transcription") as demo:
612
  inputs=[audio_input, session_state],
613
  outputs=[transcription_display, session_state],
614
  show_progress="hidden",
615
- concurrency_limit=500, # Allow many concurrent audio streams (users × frames)
616
  )
617
 
618
  model = os.environ.get("MODEL", "mistralai/Voxtral-Mini-4B-Realtime-2602")
 
25
  CALIBRATION_PERIOD = 5 # seconds before showing WPM
26
  SESSION_TIMEOUT = int(os.environ.get("SESSION_TIMEOUT", "30")) # Max 30s per session
27
  INACTIVITY_TIMEOUT = int(os.environ.get("INACTIVITY_TIMEOUT", "10")) # Close after 10s silence
28
+ MAX_CONCURRENT_SESSIONS = int(os.environ.get("MAX_SESSIONS", "150"))
29
 
30
  # Global config (shared across users)
31
  ws_url = ""
 
612
  inputs=[audio_input, session_state],
613
  outputs=[transcription_display, session_state],
614
  show_progress="hidden",
615
+ concurrency_limit=500,
616
  )
617
 
618
  model = os.environ.get("MODEL", "mistralai/Voxtral-Mini-4B-Realtime-2602")