examples: update with new FalImageGenService parameters
This commit is contained in:
@@ -31,7 +31,9 @@ async def main(room_url):
|
|||||||
)
|
)
|
||||||
|
|
||||||
imagegen = FalImageGenService(
|
imagegen = FalImageGenService(
|
||||||
image_size="square_hd",
|
params=FalImageGenService.InputParams(
|
||||||
|
image_size="square_hd"
|
||||||
|
),
|
||||||
aiohttp_session=session,
|
aiohttp_session=session,
|
||||||
key_id=os.getenv("FAL_KEY_ID"),
|
key_id=os.getenv("FAL_KEY_ID"),
|
||||||
key_secret=os.getenv("FAL_KEY_SECRET"),
|
key_secret=os.getenv("FAL_KEY_SECRET"),
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ async def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
imagegen = FalImageGenService(
|
imagegen = FalImageGenService(
|
||||||
image_size="square_hd",
|
params=FalImageGenService.InputParams(
|
||||||
|
image_size="square_hd"
|
||||||
|
),
|
||||||
aiohttp_session=session,
|
aiohttp_session=session,
|
||||||
key_id=os.getenv("FAL_KEY_ID"),
|
key_id=os.getenv("FAL_KEY_ID"),
|
||||||
key_secret=os.getenv("FAL_KEY_SECRET"),
|
key_secret=os.getenv("FAL_KEY_SECRET"),
|
||||||
|
|||||||
@@ -85,7 +85,9 @@ async def main(room_url):
|
|||||||
model="gpt-4-turbo-preview")
|
model="gpt-4-turbo-preview")
|
||||||
|
|
||||||
imagegen = FalImageGenService(
|
imagegen = FalImageGenService(
|
||||||
image_size="square_hd",
|
params=FalImageGenService.InputParams(
|
||||||
|
image_size="square_hd"
|
||||||
|
),
|
||||||
aiohttp_session=session,
|
aiohttp_session=session,
|
||||||
key_id=os.getenv("FAL_KEY_ID"),
|
key_id=os.getenv("FAL_KEY_ID"),
|
||||||
key_secret=os.getenv("FAL_KEY_SECRET"),
|
key_secret=os.getenv("FAL_KEY_SECRET"),
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ async def main():
|
|||||||
model="gpt-4-turbo-preview")
|
model="gpt-4-turbo-preview")
|
||||||
|
|
||||||
imagegen = FalImageGenService(
|
imagegen = FalImageGenService(
|
||||||
image_size="1024x1024",
|
params=FalImageGenService.InputParams(
|
||||||
|
image_size="1024x1024"
|
||||||
|
),
|
||||||
aiohttp_session=session,
|
aiohttp_session=session,
|
||||||
key_id=os.getenv("FAL_KEY_ID"),
|
key_id=os.getenv("FAL_KEY_ID"),
|
||||||
key_secret=os.getenv("FAL_KEY_SECRET"),
|
key_secret=os.getenv("FAL_KEY_SECRET"),
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ async def main(room_url: str):
|
|||||||
voice_id="jBpfuIE2acCO8z3wKNLl",
|
voice_id="jBpfuIE2acCO8z3wKNLl",
|
||||||
)
|
)
|
||||||
dalle = FalImageGenService(
|
dalle = FalImageGenService(
|
||||||
image_size="1024x1024",
|
params=FalImageGenService.InputParams(
|
||||||
|
image_size="1024x1024"
|
||||||
|
),
|
||||||
aiohttp_session=session,
|
aiohttp_session=session,
|
||||||
key_id=os.getenv("FAL_KEY_ID"),
|
key_id=os.getenv("FAL_KEY_ID"),
|
||||||
key_secret=os.getenv("FAL_KEY_SECRET"),
|
key_secret=os.getenv("FAL_KEY_SECRET"),
|
||||||
|
|||||||
@@ -204,7 +204,9 @@ async def main(room_url: str, token):
|
|||||||
voice_id="Xb7hH8MSUJpSbSDYk0k2",
|
voice_id="Xb7hH8MSUJpSbSDYk0k2",
|
||||||
) # matilda
|
) # matilda
|
||||||
img = FalImageGenService(
|
img = FalImageGenService(
|
||||||
image_size="1024x1024",
|
params={
|
||||||
|
image_size = "1024x1024",
|
||||||
|
},
|
||||||
aiohttp_session=session,
|
aiohttp_session=session,
|
||||||
key_id=os.getenv("FAL_KEY_ID"),
|
key_id=os.getenv("FAL_KEY_ID"),
|
||||||
key_secret=os.getenv("FAL_KEY_SECRET"),
|
key_secret=os.getenv("FAL_KEY_SECRET"),
|
||||||
|
|||||||
Reference in New Issue
Block a user