Spaces:
Sleeping
Sleeping
fix typo
Browse files- charles_actor.py +1 -1
charles_actor.py
CHANGED
@@ -169,7 +169,7 @@ class CharlesActor:
|
|
169 |
has_spoken_for_this_prompt = False
|
170 |
elif len(prompt) > 0 and prompt not in prompts_to_ignore:
|
171 |
# sometimes we get a false signal of speaker_finsihed
|
172 |
-
# in which case we get new prompts
|
173 |
if len(previous_prompt) > 0 and not has_spoken_for_this_prompt:
|
174 |
additional_prompt = previous_prompt
|
175 |
has_spoken_for_this_prompt = True
|
|
|
169 |
has_spoken_for_this_prompt = False
|
170 |
elif len(prompt) > 0 and prompt not in prompts_to_ignore:
|
171 |
# sometimes we get a false signal of speaker_finsihed
|
172 |
+
# in which case we get new prompts before we have spoken
|
173 |
if len(previous_prompt) > 0 and not has_spoken_for_this_prompt:
|
174 |
additional_prompt = previous_prompt
|
175 |
has_spoken_for_this_prompt = True
|