Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ user_input = st.text_input("Enter your query (e.g., coverage for diabetes, best
|
|
22 |
|
23 |
if user_input:
|
24 |
# Detect intent using text classification
|
25 |
-
result = classifier(user_input)
|
26 |
label = result[0]["label"] # Get predicted label
|
27 |
|
28 |
# Manual mapping (since DeepSeek does not support `candidate_labels`)
|
|
|
22 |
|
23 |
if user_input:
|
24 |
# Detect intent using text classification
|
25 |
+
result = classifier(user_input) # Now we remove candidate_labels
|
26 |
label = result[0]["label"] # Get predicted label
|
27 |
|
28 |
# Manual mapping (since DeepSeek does not support `candidate_labels`)
|