Update app.py
Browse files30 unmodified lines3132333435363712 unmodified lines5051525354555630 unmodified linesdef update_imgbox(choices):choices_plus = extend_choices(choices)return [gr.Image(None, label = m, visible = (m != 'NA'), min_width=640) for m in choices_plus]def gen_fn(model_str, prompt):12 unmodified linesgen_button.click(lambda s: gr.update(interactive = True), None, stop_button)with gr.Row():output = [gr.Image(label = m) for m in default_models]current_models = [gr.Textbox(m, visible = False) for m in default_models]for m, o in zip(current_models, output):30 unmodified lines3132333435363712 unmodified lines5051525354555630 unmodified linesdef update_imgbox(choices):choices_plus = extend_choices(choices)return [gr.Image(None, label = m, visible = (m != 'NA')) for m in choices_plus]def gen_fn(model_str, prompt):12 unmodified linesgen_button.click(lambda s: gr.update(interactive = True), None, stop_button)with gr.Row():output = [gr.Image(label = m, min_width=256) for m in default_models]current_models = [gr.Textbox(m, visible = False) for m in default_models]for m, o in zip(current_models, output):
app.py+2-2