Spaces:
Runtime error
Runtime error
Jesse Liu commited on
Commit ·
bcb1d21
1
Parent(s): 8e5c1fd
Fix: remove openai-whisper from requirements, make whisper optional in code
Browse files- chatgpt.py +3 -4
chatgpt.py
CHANGED
|
@@ -1133,12 +1133,11 @@ with gr.Blocks() as app:
|
|
| 1133 |
|
| 1134 |
with gr.Tabs():
|
| 1135 |
with gr.TabItem("Expert Evaluation"):
|
| 1136 |
-
# Load evaluation groups
|
| 1137 |
-
#
|
| 1138 |
eval_groups = {}
|
| 1139 |
-
use_eval_groups = str(os.getenv("EVAL_USE_GROUPS", "")).strip().lower() in {"1", "true", "yes", "y"}
|
| 1140 |
eval_groups_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'eval_groups_5groups_pairwise.json')
|
| 1141 |
-
if
|
| 1142 |
try:
|
| 1143 |
with open(eval_groups_file, 'r') as f:
|
| 1144 |
eval_groups_data = json.load(f)
|
|
|
|
| 1133 |
|
| 1134 |
with gr.Tabs():
|
| 1135 |
with gr.TabItem("Expert Evaluation"):
|
| 1136 |
+
# Load evaluation groups — always load if the file exists so the
|
| 1137 |
+
# Clinician dropdown and per-clinician filtering are active by default.
|
| 1138 |
eval_groups = {}
|
|
|
|
| 1139 |
eval_groups_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'eval_groups_5groups_pairwise.json')
|
| 1140 |
+
if os.path.exists(eval_groups_file):
|
| 1141 |
try:
|
| 1142 |
with open(eval_groups_file, 'r') as f:
|
| 1143 |
eval_groups_data = json.load(f)
|