Spaces:
Sleeping
Sleeping
Akis Giannoukos
commited on
Commit
·
3ef822b
1
Parent(s):
8925670
Autoplay clinician voice as soon as its response is generated
Browse files
app.py
CHANGED
|
@@ -601,7 +601,7 @@ def create_demo():
|
|
| 601 |
severity_label = gr.Label(label="Severity")
|
| 602 |
threshold = gr.Slider(0.5, 1.0, value=CONFIDENCE_THRESHOLD_DEFAULT, step=0.05, label="Confidence Threshold (stop when min ≥ τ)")
|
| 603 |
tts_enable = gr.Checkbox(label="Speak clinician responses (TTS)", value=USE_TTS_DEFAULT)
|
| 604 |
-
tts_audio = gr.Audio(label="Clinician voice", interactive=False)
|
| 605 |
model_id_tb = gr.Textbox(value=current_model_id, label="Chat Model ID", info="e.g., google/gemma-2-2b-it or google/medgemma-4b-it")
|
| 606 |
with gr.Row():
|
| 607 |
apply_model_btn = gr.Button("Apply model (no restart)")
|
|
|
|
| 601 |
severity_label = gr.Label(label="Severity")
|
| 602 |
threshold = gr.Slider(0.5, 1.0, value=CONFIDENCE_THRESHOLD_DEFAULT, step=0.05, label="Confidence Threshold (stop when min ≥ τ)")
|
| 603 |
tts_enable = gr.Checkbox(label="Speak clinician responses (TTS)", value=USE_TTS_DEFAULT)
|
| 604 |
+
tts_audio = gr.Audio(label="Clinician voice", interactive=False, autoplay=True)
|
| 605 |
model_id_tb = gr.Textbox(value=current_model_id, label="Chat Model ID", info="e.g., google/gemma-2-2b-it or google/medgemma-4b-it")
|
| 606 |
with gr.Row():
|
| 607 |
apply_model_btn = gr.Button("Apply model (no restart)")
|