Buckets:

download
raw
1.97 kB
import chainlit as cl
from chainlit.input_widget import Select, Slider, Switch
@cl.on_chat_start
async def start():
await cl.ChatSettings(
[
Select(
id="Model",
label="OpenAI - Model",
values=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "gpt-4-32k"],
initial_index=0,
),
Switch(id="Streaming", label="OpenAI - Stream Tokens", initial=True),
Slider(
id="Temperature",
label="OpenAI - Temperature",
initial=1,
min=0,
max=2,
step=0.1,
),
Slider(
id="SAI_Steps",
label="Stability AI - Steps",
initial=30,
min=0,
max=150,
step=1,
description="Amount of inference steps performed on image generation.",
),
Slider(
id="SAI_Cfg_Scale",
label="Stability AI - Cfg_Scale",
initial=7,
min=1,
max=35,
step=0.1,
description="Influences how strongly your generation is guided to match your prompt.",
),
Slider(
id="SAI_Width",
label="Stability AI - Image Width",
initial=512,
min=0,
max=2048,
step=64,
tooltip="Measured in pixels",
),
Slider(
id="SAI_Height",
label="Stability AI - Image Height",
initial=512,
min=0,
max=2048,
step=64,
tooltip="Measured in pixels",
),
]
).send()
@cl.on_settings_update
async def setup_agent(settings):
await cl.Message(content="Settings updated!").send()

Xet Storage Details

Size:
1.97 kB
·
Xet hash:
814866c564a474ffa0a3f9cdff22f0f2caa3000a1ea623363d813a5d534ddd5e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.