Update app.py
Browse files149 unmodified lines150151152153154155156157158159160161162163164165166167168169170171172173174175176149 unmodified lineswith gr.Column(elem_id="prompt-container"):with gr.Row():text_prompt = gr.Textbox(label="Описание изображения", placeholder="Реалистичная кошка сидит на подоконнике...", lines=3, elem_id="prompt-text-input")"""with gr.Row():model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=list(mmodels.keys()))"""with gr.Tab("Расширенные настройки"):with gr.Row():negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")"""with gr.Row():steps = gr.Slider(label="Sampling steps", value=35, minimum=1, maximum=100, step=1)with gr.Row():cfg = gr.Slider(label="CFG Scale", value=7, minimum=1, maximum=20, step=1)with gr.Row():method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "Euler", "Euler a", "Heun", "DDIM"])with gr.Row():strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)with gr.Row():seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)"""with gr.Row():gpt = gr.Checkbox(label="GPT (Улучшение описания)", value=True)149 unmodified lines150151152153154155156157158159160161149 unmodified lineswith gr.Column(elem_id="prompt-container"):with gr.Row():text_prompt = gr.Textbox(label="Описание изображения", placeholder="Реалистичная кошка сидит на подоконнике...", lines=3, elem_id="prompt-text-input")with gr.Tab("Расширенные настройки"):with gr.Row():negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")with gr.Row():gpt = gr.Checkbox(label="GPT (Улучшение описания)", value=True)
app.py+1-16