shgao commited on
Commit
babfe4f
1 Parent(s): ae359e4
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -5,8 +5,13 @@ from sam2edit import create_demo as create_demo_edit_anything
5
  # from sam2image import create_demo as create_demo_generate_anything
6
 
7
 
8
- DESCRIPTION = '# [Edit Anything](https://github.com/sail-sg/EditAnything)'
9
-
 
 
 
 
 
10
  with gr.Blocks() as demo:
11
  gr.Markdown(DESCRIPTION)
12
  with gr.Tabs():
@@ -14,6 +19,7 @@ with gr.Blocks() as demo:
14
  create_demo_edit_anything()
15
  # with gr.TabItem('Generate Anything'):
16
  # create_demo_generate_anything()
17
-
 
18
 
19
  demo.queue(api_open=False).launch()
 
5
  # from sam2image import create_demo as create_demo_generate_anything
6
 
7
 
8
+ DESCRIPTION = f'''# [Edit Anything](https://github.com/sail-sg/EditAnything)
9
+ **Edit anything and keep the layout by segmenting anything in the image.**
10
+ '''
11
+ SHARED_UI_WARNING = f'''### [NOTE] Inference may be slow in this shared UI.
12
+ You can duplicate and use it with a paid private GPU.
13
+ <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/jyseo/3DFuse?duplicate=true"><img style="margin-top:0;margin-bottom:0" src="https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-xl-dark.svg" alt="Duplicate Space"></a>
14
+ '''
15
  with gr.Blocks() as demo:
16
  gr.Markdown(DESCRIPTION)
17
  with gr.Tabs():
 
19
  create_demo_edit_anything()
20
  # with gr.TabItem('Generate Anything'):
21
  # create_demo_generate_anything()
22
+ with gr.Box():
23
+ gr.Markdown(SHARED_UI_WARNING)
24
 
25
  demo.queue(api_open=False).launch()