Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,7 +199,7 @@ def process_query(query):
|
|
| 199 |
if "</think>" in answer:
|
| 200 |
answer = answer.split("</think>", 1)[-1].strip()
|
| 201 |
confidence = calculate_confidence(query, merged_result, answer)
|
| 202 |
-
full_response = f"{
|
| 203 |
return full_response
|
| 204 |
|
| 205 |
# --- Initialization ---
|
|
|
|
| 199 |
if "</think>" in answer:
|
| 200 |
answer = answer.split("</think>", 1)[-1].strip()
|
| 201 |
confidence = calculate_confidence(query, merged_result, answer)
|
| 202 |
+
full_response = f"{answer}\n\nConfidence: {confidence:.2f}"
|
| 203 |
return full_response
|
| 204 |
|
| 205 |
# --- Initialization ---
|