Skip to content

Commit

Permalink
fix videobots tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Feb 28, 2024
1 parent 2589be3 commit 328889c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ def run(self, state: dict) -> typing.Iterator[str | None]:
"""
)

state.update(
dict(final_prompt=[], output_text=[], output_audio=[], output_video=[])
)

user_input = request.input_prompt.strip()
if not (user_input or request.input_images or request.input_documents):
return
Expand Down Expand Up @@ -896,9 +900,6 @@ def run(self, state: dict) -> typing.Iterator[str | None]:
else:
yield f"Streaming{str(i + 1).translate(SUPERSCRIPT)} {model.value}..."

state["output_audio"] = []
state["output_video"] = []

if not request.tts_provider:
return
tts_state = dict(state)
Expand Down

0 comments on commit 328889c

Please sign in to comment.