Update app.py
Browse files144 unmodified lines145146147148149150151138 unmodified lines290291292293294295296144 unmodified linesdef use_output_as_input(output_image):"""Sets the generated output as the new input image."""if output_image is not None:return gr.update(value=output_image)return gr.update()# Initialize Qwen Image Edit pipeline138 unmodified linesrun_button = gr.Button("Run")with gr.Column():result = gr.ImageSlider(label="Result", show_label=False)use_as_input_button = gr.Button("🔄 Use as Input Image", visible=False, variant="secondary")144 unmodified lines145146147148149150151138 unmodified lines290291292293294295296144 unmodified linesdef use_output_as_input(output_image):"""Sets the generated output as the new input image."""if output_image is not None:return gr.update(value=output_image[1])return gr.update()# Initialize Qwen Image Edit pipeline138 unmodified linesrun_button = gr.Button("Run")with gr.Column():result = gr.ImageSlider(label="Result", show_label=False, interactive=False)use_as_input_button = gr.Button("🔄 Use as Input Image", visible=False, variant="secondary")
app.py+2-2