beyoru commited on
Commit
6c46f2d
·
verified ·
1 Parent(s): 914aac7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -88,13 +88,13 @@ def respond(
88
  messages.append({"role": "user", "content": message})
89
 
90
  # Calculate EOU probability
91
- eou_prob = calculate_eou(messages, onnx_session)
92
- print(f"EOU Probability: {eou_prob}") # Debug output
93
 
94
- # If EOU is below the threshold, ask for more input
95
- if eou_prob < EOU_THRESHOLD:
96
- yield "[Waiting for user to continue input...]"
97
- return
98
 
99
 
100
  stream = client.chat.completions.create(
 
88
  messages.append({"role": "user", "content": message})
89
 
90
  # Calculate EOU probability
91
+ # eou_prob = calculate_eou(messages, onnx_session)
92
+ # print(f"EOU Probability: {eou_prob}") # Debug output
93
 
94
+ # # If EOU is below the threshold, ask for more input
95
+ # if eou_prob < EOU_THRESHOLD:
96
+ # yield "[Waiting for user to continue input...]"
97
+ # return
98
 
99
 
100
  stream = client.chat.completions.create(