akhaliq HF staff commited on
Commit
11b229f
1 Parent(s): 1ff2b57

add header

Browse files
Files changed (2) hide show
  1. app.py +1 -27
  2. header.html +36 -0
app.py CHANGED
@@ -61,33 +61,7 @@ css = '''
61
 
62
  image_blocks = gr.Blocks(css=css)
63
  with image_blocks as demo:
64
- gr.HTML(
65
- """
66
- <div style="text-align: center; max-width: 650px; margin: 0 auto;">
67
- <div
68
- style="
69
- display: inline-flex;
70
- align-items: center;
71
- gap: 0.8rem;
72
- font-size: 1.75rem;
73
- "
74
- >
75
- <h1 style="font-weight: 900; margin-bottom: 7px;">
76
- Stable Diffusion Inpainting
77
- </h1>
78
- </div>
79
- <p style="margin-bottom: 10px; font-size: 94%">
80
- Stable Diffusion Inpainting by RunwayML, add a mask and text prompt for what you want to replace <br>For faster generation you can try
81
- <a
82
- href="https://app.runwayml.com/video-tools/teams/akhaliq/ai-tools/erase-and-replace"
83
- style="text-decoration: underline;"
84
- target="_blank"
85
- >erase and replace tool on Runway</a
86
- >
87
- </p>
88
- </div>
89
- """
90
- )
91
  with gr.Group():
92
  with gr.Box():
93
  image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload").style(height=400)
 
61
 
62
  image_blocks = gr.Blocks(css=css)
63
  with image_blocks as demo:
64
+ gr.HTML(read_content("header.html"))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  with gr.Group():
66
  with gr.Box():
67
  image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Upload").style(height=400)
header.html ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div style="text-align: center; max-width: 650px; margin: 0 auto;">
2
+ <div
3
+ style="
4
+ display: inline-flex;
5
+ gap: 0.8rem;
6
+ font-size: 1.75rem;
7
+ margin-bottom: 10px;
8
+ margin-left: 220px;
9
+ justify-content: center;
10
+ "
11
+ >
12
+ <a href="https://runwayml.com/"><img src="https://aeiljuispo.cloudimg.io/v7/https://s3.amazonaws.com/moonup/production/uploads/1665970599545-634cb15a4abe8405758d2e7e.jpeg" alt="RunwayML" width="60%"></a>
13
+ </div>
14
+ <div
15
+ style="
16
+ display: inline-flex;
17
+ align-items: center;
18
+ gap: 0.8rem;
19
+ font-size: 1.75rem;
20
+ margin-bottom: 10px;
21
+ justify-content: center;
22
+ ">
23
+ <a href="https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/ernie-layout"><h1 style="font-weight: 900; align-items: center; margin-bottom: 7px;">
24
+ RunwayML Stable Diffusion Inpainting 🎨
25
+ </h1></a>
26
+ <p style="margin-bottom: 10px; font-size: 94%">
27
+ Stable Diffusion Inpainting by RunwayML, add a mask and text prompt for what you want to replace <br>For faster generation you can try
28
+ <a
29
+ href="https://app.runwayml.com/video-tools/teams/akhaliq/ai-tools/erase-and-replace"
30
+ style="text-decoration: underline;"
31
+ target="_blank"
32
+ >erase and replace tool on Runway</a
33
+ >
34
+ </p>
35
+ </div>
36
+ </div>