Spaces:
Sleeping
Sleeping
Akis Giannoukos
commited on
Commit
·
bb8f474
1
Parent(s):
2e9e60e
Adjust chatbot height in demo interface and remove Chat tab for a streamlined user experience in the Advanced section.
Browse files
app.py
CHANGED
|
@@ -632,12 +632,9 @@ def create_demo():
|
|
| 632 |
# Autoplay clinician voice output (player hidden with CSS)
|
| 633 |
tts_audio_main = gr.Audio(label=None, interactive=False, autoplay=True, show_label=False, elem_id="tts-player")
|
| 634 |
|
| 635 |
-
with gr.TabItem("Chat"):
|
| 636 |
-
with gr.Column():
|
| 637 |
-
chatbot = gr.Chatbot(height=520, type="tuples", label="Conversation")
|
| 638 |
-
|
| 639 |
with gr.TabItem("Advanced"):
|
| 640 |
with gr.Column():
|
|
|
|
| 641 |
score_json = gr.JSON(label="PHQ-9 Assessment (live)")
|
| 642 |
severity_label = gr.Label(label="Severity")
|
| 643 |
threshold = gr.Slider(0.5, 1.0, value=CONFIDENCE_THRESHOLD_DEFAULT, step=0.05, label="Confidence Threshold (stop when min ≥ τ)")
|
|
|
|
| 632 |
# Autoplay clinician voice output (player hidden with CSS)
|
| 633 |
tts_audio_main = gr.Audio(label=None, interactive=False, autoplay=True, show_label=False, elem_id="tts-player")
|
| 634 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 635 |
with gr.TabItem("Advanced"):
|
| 636 |
with gr.Column():
|
| 637 |
+
chatbot = gr.Chatbot(height=360, type="tuples", label="Conversation")
|
| 638 |
score_json = gr.JSON(label="PHQ-9 Assessment (live)")
|
| 639 |
severity_label = gr.Label(label="Severity")
|
| 640 |
threshold = gr.Slider(0.5, 1.0, value=CONFIDENCE_THRESHOLD_DEFAULT, step=0.05, label="Confidence Threshold (stop when min ≥ τ)")
|