Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def modify_image(image_url, prompt, mask_id=4):
|
|
38 |
"redstonehero/ReV_Animated_Inpainting",
|
39 |
torch_dtype=torch.float16)
|
40 |
|
41 |
-
pipeline.enable_model_cpu_offload()
|
42 |
|
43 |
image1 = pipeline(prompt=prompt,
|
44 |
num_inference_steps=24,
|
@@ -61,7 +61,7 @@ demo = gr.Interface(
|
|
61 |
inputs=[
|
62 |
gr.Image(type="filepath"),
|
63 |
gr.Textbox(label="Prompt"),
|
64 |
-
gr.Radio(["4", "
|
65 |
],
|
66 |
outputs=gr.Image()
|
67 |
)
|
|
|
38 |
"redstonehero/ReV_Animated_Inpainting",
|
39 |
torch_dtype=torch.float16)
|
40 |
|
41 |
+
# pipeline.enable_model_cpu_offload()
|
42 |
|
43 |
image1 = pipeline(prompt=prompt,
|
44 |
num_inference_steps=24,
|
|
|
61 |
inputs=[
|
62 |
gr.Image(type="filepath"),
|
63 |
gr.Textbox(label="Prompt"),
|
64 |
+
gr.Radio(["4", "6"], label="Mask ID")
|
65 |
],
|
66 |
outputs=gr.Image()
|
67 |
)
|