Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ question_examples = [
|
|
102 |
['A 30-year-old patient is taking Prozac to treat their depression. They were recently diagnosed with WHIM syndrome and require a treatment for that condition as well. Is Xolremdi suitable for this patient, considering contraindications?'],
|
103 |
]
|
104 |
|
105 |
-
def safe_load_embeddings(filepath: str) ->
|
106 |
"""Safely load embeddings with proper weights_only handling"""
|
107 |
try:
|
108 |
# First try with weights_only=True (secure mode)
|
|
|
102 |
['A 30-year-old patient is taking Prozac to treat their depression. They were recently diagnosed with WHIM syndrome and require a treatment for that condition as well. Is Xolremdi suitable for this patient, considering contraindications?'],
|
103 |
]
|
104 |
|
105 |
+
def safe_load_embeddings(filepath: str) -> any:
|
106 |
"""Safely load embeddings with proper weights_only handling"""
|
107 |
try:
|
108 |
# First try with weights_only=True (secure mode)
|