Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,13 +38,12 @@ def respond(message, history):
|
|
| 38 |
confidence = round(best["score"], 2)
|
| 39 |
|
| 40 |
reply = (
|
| 41 |
-
f"
|
| 42 |
-
f"
|
| 43 |
f"{RESPONSES[intent]}"
|
| 44 |
)
|
| 45 |
|
| 46 |
-
|
| 47 |
-
return history
|
| 48 |
|
| 49 |
|
| 50 |
"""
|
|
|
|
| 38 |
confidence = round(best["score"], 2)
|
| 39 |
|
| 40 |
reply = (
|
| 41 |
+
f"Detected intent: {intent}\n"
|
| 42 |
+
f"Confidence: {confidence}\n\n"
|
| 43 |
f"{RESPONSES[intent]}"
|
| 44 |
)
|
| 45 |
|
| 46 |
+
return reply
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
"""
|