examples: update with new FalImageGenService parameters

This commit is contained in:
Aleix Conchillo Flaqué
2024-04-10 09:45:08 -07:00
parent bfe2e0f36e
commit e22babbae2
6 changed files with 18 additions and 6 deletions

View File

@@ -31,7 +31,9 @@ async def main(room_url):
)
imagegen = FalImageGenService(
image_size="square_hd",
params=FalImageGenService.InputParams(
image_size="square_hd"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),

View File

@@ -35,7 +35,9 @@ async def main():
)
imagegen = FalImageGenService(
image_size="square_hd",
params=FalImageGenService.InputParams(
image_size="square_hd"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),

View File

@@ -85,7 +85,9 @@ async def main(room_url):
model="gpt-4-turbo-preview")
imagegen = FalImageGenService(
image_size="square_hd",
params=FalImageGenService.InputParams(
image_size="square_hd"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),

View File

@@ -45,7 +45,9 @@ async def main():
model="gpt-4-turbo-preview")
imagegen = FalImageGenService(
image_size="1024x1024",
params=FalImageGenService.InputParams(
image_size="1024x1024"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),

View File

@@ -51,7 +51,9 @@ async def main(room_url: str):
voice_id="jBpfuIE2acCO8z3wKNLl",
)
dalle = FalImageGenService(
image_size="1024x1024",
params=FalImageGenService.InputParams(
image_size="1024x1024"
),
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),

View File

@@ -204,7 +204,9 @@ async def main(room_url: str, token):
voice_id="Xb7hH8MSUJpSbSDYk0k2",
) # matilda
img = FalImageGenService(
image_size="1024x1024",
params={
image_size = "1024x1024",
},
aiohttp_session=session,
key_id=os.getenv("FAL_KEY_ID"),
key_secret=os.getenv("FAL_KEY_SECRET"),