Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ pipeline = pipe
|
|
51 |
|
52 |
@spaces.GPU
|
53 |
def generate_image(prompt, reference_image, controlnet_conditioning_scale,num_frames):
|
54 |
-
style_images = [load_image(f
|
55 |
|
56 |
pipeline.set_ip_adapter_scale(controlnet_conditioning_scale)
|
57 |
|
@@ -74,7 +74,7 @@ interface = gr.Interface(
|
|
74 |
inputs=[
|
75 |
gr.Textbox(label="Prompt"),
|
76 |
# gr.Image( type= "filepath",label="Reference Image (Style)"),
|
77 |
-
gr.File(type="
|
78 |
gr.Slider(label="Control Net Conditioning Scale", minimum=0, maximum=1.0, step=0.1, value=1.0),
|
79 |
gr.Slider(label="Number of frames", minimum=0, maximum=1.0, step=0.1, value=1.0),
|
80 |
|
|
|
51 |
|
52 |
@spaces.GPU
|
53 |
def generate_image(prompt, reference_image, controlnet_conditioning_scale,num_frames):
|
54 |
+
style_images = [load_image(f) for f in reference_image]
|
55 |
|
56 |
pipeline.set_ip_adapter_scale(controlnet_conditioning_scale)
|
57 |
|
|
|
74 |
inputs=[
|
75 |
gr.Textbox(label="Prompt"),
|
76 |
# gr.Image( type= "filepath",label="Reference Image (Style)"),
|
77 |
+
gr.File(type="filepath",file_count="multiple",label="Reference Image (Style)"),
|
78 |
gr.Slider(label="Control Net Conditioning Scale", minimum=0, maximum=1.0, step=0.1, value=1.0),
|
79 |
gr.Slider(label="Number of frames", minimum=0, maximum=1.0, step=0.1, value=1.0),
|
80 |
|