Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
97 |
-
|
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(
|