services: FalImageGenService now uses fal-client library

This commit is contained in:
Aleix Conchillo Flaqué
2024-04-11 14:09:01 -07:00
parent 1e83a405c0
commit 7b49c9ade3
9 changed files with 21 additions and 42 deletions

View File

@@ -35,8 +35,7 @@ async def main(room_url):
image_size="square_hd"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),
key=os.getenv("FAL_KEY"),
)
pipeline = Pipeline([imagegen])

View File

@@ -39,8 +39,7 @@ async def main():
image_size="square_hd"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),
key=os.getenv("FAL_KEY"),
)
pipeline = Pipeline([imagegen])

View File

@@ -89,8 +89,7 @@ async def main(room_url):
image_size="square_hd"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),
key=os.getenv("FAL_KEY"),
)
gated_aggregator = GatedAggregator(

View File

@@ -49,8 +49,7 @@ async def main():
image_size="1024x1024"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),
key=os.getenv("FAL_KEY"),
)
# Get a complete audio chunk from the given text. Splitting this into its own

View File

@@ -55,8 +55,7 @@ async def main(room_url: str):
image_size="1024x1024"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),
key=os.getenv("FAL_KEY"),
)
bot1_messages = [

View File

@@ -208,8 +208,7 @@ async def main(room_url: str, token):
image_size = "1024x1024",
},
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),
key=os.getenv("FAL_KEY"),
)
lra = LLMAssistantResponseAggregator(messages)
ura = LLMUserResponseAggregator(messages)