Pierre Chapuis commited on
Commit
f26ac07
·
unverified ·
1 Parent(s): 0689c8f
Files changed (3) hide show
  1. README.md +1 -1
  2. requirements.txt +1 -0
  3. src/app.py +2 -0
README.md CHANGED
@@ -9,7 +9,7 @@ python_version: 3.12
9
  app_file: src/app.py
10
  pinned: false
11
  license: other
12
- short_description: Erase any object just by naming it!
13
  tags:
14
  - refiners
15
  - image-to-image
 
9
  app_file: src/app.py
10
  pinned: false
11
  license: other
12
+ short_description: Erase any object from an image with just a prompt
13
  tags:
14
  - refiners
15
  - image-to-image
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  gradio_image_annotation>=0.2.5
2
  environs>=11.0.0
3
  pillow>=10.4.0
 
1
+ spaces>=0.35.0
2
  gradio_image_annotation>=0.2.5
3
  environs>=11.0.0
4
  pillow>=10.4.0
src/app.py CHANGED
@@ -212,6 +212,7 @@ with gr.Blocks() as demo:
212
  outputs=[oimg],
213
  fn=process_prompt,
214
  cache_examples=True,
 
215
  )
216
  with gr.Tab("By bounding box", id="tab_bb"):
217
  with gr.Row():
@@ -282,6 +283,7 @@ with gr.Blocks() as demo:
282
  outputs=[oimg],
283
  fn=process_bbox,
284
  cache_examples=True,
 
285
  )
286
 
287
  demo.queue(max_size=30, api_open=False)
 
212
  outputs=[oimg],
213
  fn=process_prompt,
214
  cache_examples=True,
215
+ cache_mode="eager",
216
  )
217
  with gr.Tab("By bounding box", id="tab_bb"):
218
  with gr.Row():
 
283
  outputs=[oimg],
284
  fn=process_bbox,
285
  cache_examples=True,
286
+ cache_mode="eager",
287
  )
288
 
289
  demo.queue(max_size=30, api_open=False)