King-8 commited on
Commit
cd1b16f
·
verified ·
1 Parent(s): accd0cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -38,13 +38,12 @@ def respond(message, history):
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
- history.append({"role": "assistant", "content": reply})
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
  """