From c161403497c509c3e55c9a96d066f1254bf360ff Mon Sep 17 00:00:00 2001 From: Johannes Stelzer Date: Wed, 22 Feb 2023 18:36:14 +0100 Subject: [PATCH] ui steps and hf duplicate space --- gradio_ui.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gradio_ui.py b/gradio_ui.py index a5b81af..68139e5 100644 --- a/gradio_ui.py +++ b/gradio_ui.py @@ -353,12 +353,19 @@ if __name__ == "__main__": # self = BlendingFrontend(None) with gr.Blocks() as demo: + gr.HTML(""" +

For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. +
+ +Duplicate Space +

""") + with gr.Row(): prompt1 = gr.Textbox(label="prompt 1") prompt2 = gr.Textbox(label="prompt 2") with gr.Row(): - duration_compute = gr.Slider(5, 200, bf.t_compute_max_allowed, step=1, label='waiting time', interactive=True) + duration_compute = gr.Slider(10, 25, bf.t_compute_max_allowed, step=1, label='waiting time', interactive=True) duration_video = gr.Slider(1, 100, bf.duration_video, step=0.1, label='video duration', interactive=True) height = gr.Slider(256, 2048, bf.height, step=128, label='height', interactive=True) width = gr.Slider(256, 2048, bf.width, step=128, label='width', interactive=True) @@ -394,9 +401,9 @@ if __name__ == "__main__": guidance_scale_mid_damper = gr.Slider(0.01, 2.0, bf.guidance_scale_mid_damper, step=0.01, label='guidance_scale_mid_damper', interactive=True) with gr.Row(): - b_compute1 = gr.Button('compute first image', variant='primary') - b_compute_transition = gr.Button('compute transition', variant='primary') - b_compute2 = gr.Button('compute last image', variant='primary') + b_compute1 = gr.Button('step1: compute first image', variant='primary') + b_compute2 = gr.Button('step2: compute last image', variant='primary') + b_compute_transition = gr.Button('step3: compute transition', variant='primary') with gr.Row(): img1 = gr.Image(label="1/5")