Update app.py
Browse files45 unmodified lines4647484950515212 unmodified lines656667686970716 unmodified lines7879808182838485868745 unmodified linesdef make_me():# with gr.Tab('The Dream'):with gr.Row():txt_input = gr.Textbox(lines=2, value=kii, width=300)#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)gen_button = gr.Button('Generate images', width=150, height=30)12 unmodified linesgen_event = gen_button.click(gen_fn, [m, txt_input], o)stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])with gr.Accordion('Model selection'):model_choice = gr.CheckboxGroup(models, label=f'Choose up to {num_models} different models from the 800 available!', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)model_choice.change(update_imgbox, model_choice, output)model_choice.change(extend_choices, model_choice, current_models)with gr.Row():6 unmodified linesjs_code = """document.addEventListener('pointerdown', function() {console.log('ghgh')});"""45 unmodified lines4647484950515212 unmodified lines656667686970716 unmodified lines7879808182838485868745 unmodified linesdef make_me():# with gr.Tab('The Dream'):with gr.Row():txt_input = gr.Textbox(lines=2, value=kii, width=300, max-height=100)#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)gen_button = gr.Button('Generate images', width=150, height=30)12 unmodified linesgen_event = gen_button.click(gen_fn, [m, txt_input], o)stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])with gr.Accordion('Model selection'):model_choice = gr.CheckboxGroup(models, label=f' {num_models} different models selected', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)model_choice.change(update_imgbox, model_choice, output)model_choice.change(extend_choices, model_choice, current_models)with gr.Row():6 unmodified linesjs_code = """console.log('ghgh');"""
app.py+5-5