m451h commited on
Commit
6e32234
·
verified ·
1 Parent(s): 2dd5975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", "5", "6"], label="Mask ID")
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
  )