bugfix
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ pipeline_text2image = AutoPipelineForText2Image.from_pretrained("stabilityai/sdx
|
|
| 14 |
pipeline_image2image = AutoPipelineForImage2Image.from_pipe(pipeline_text2image).to("cuda")
|
| 15 |
pipeline_text2image = pipeline_text2image.to("cuda")
|
| 16 |
|
| 17 |
-
def
|
| 18 |
if seed=="":
|
| 19 |
seed=random.randint(0, 5000)
|
| 20 |
|
|
@@ -64,7 +64,7 @@ gradio_app_img2img = gr.Interface(
|
|
| 64 |
)
|
| 65 |
|
| 66 |
gradio_app_img2video = gr.Interface(
|
| 67 |
-
fn=
|
| 68 |
inputs=[
|
| 69 |
gr.Image(type='filepath'),
|
| 70 |
gr.Text(),
|
|
|
|
| 14 |
pipeline_image2image = AutoPipelineForImage2Image.from_pipe(pipeline_text2image).to("cuda")
|
| 15 |
pipeline_text2image = pipeline_text2image.to("cuda")
|
| 16 |
|
| 17 |
+
def img2video(image,seed="",fps=7,outfile=""):
|
| 18 |
if seed=="":
|
| 19 |
seed=random.randint(0, 5000)
|
| 20 |
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
gradio_app_img2video = gr.Interface(
|
| 67 |
+
fn=img2video,
|
| 68 |
inputs=[
|
| 69 |
gr.Image(type='filepath'),
|
| 70 |
gr.Text(),
|