some minor cleanup, and coalesce image/images into one thing, and use itertools.cycle

This commit is contained in:
Moishe Lettvin
2024-01-27 19:07:29 -05:00
parent 86af896150
commit 4416f36ae9
8 changed files with 62 additions and 50 deletions

View File

@@ -16,7 +16,7 @@ from dailyai.services.fal_ai_services import FalImageGenService
class ImageSyncAggregator(AIService):
def __init__(self, speaking_path:str, waiting_path:str):
def __init__(self, speaking_path: str, waiting_path: str):
self._speaking_image = Image.open(speaking_path)
self._speaking_image_bytes = self._speaking_image.tobytes()
@@ -28,6 +28,7 @@ class ImageSyncAggregator(AIService):
yield frame
yield ImageQueueFrame(None, self._waiting_image_bytes)
async def main(room_url: str, token):
global transport
global llm