lixiang46 commited on
Commit
f92dc60
1 Parent(s): 8004741

update title

Browse files
Files changed (2) hide show
  1. app.py +7 -4
  2. assets/title.md +13 -0
app.py CHANGED
@@ -115,12 +115,15 @@ css="""
115
  margin: 0 auto;
116
  max-width: 750px;
117
  }
118
- #title {
119
- margin: 0 auto;
120
- }
121
  """
122
 
123
- with gr.Blocks(css=css, title="Kolors") as Kolors:
 
 
 
 
 
 
124
  with gr.Row():
125
  with gr.Column(elem_id="col-left"):
126
  with gr.Row():
 
115
  margin: 0 auto;
116
  max-width: 750px;
117
  }
 
 
 
118
  """
119
 
120
+ def load_description(fp):
121
+ with open(fp, 'r', encoding='utf-8') as f:
122
+ content = f.read()
123
+ return content
124
+
125
+ with gr.Blocks(css=css) as Kolors:
126
+ gr.HTML(load_description("assets/title.md"))
127
  with gr.Row():
128
  with gr.Column(elem_id="col-left"):
129
  with gr.Row():
assets/title.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
2
+ <div>
3
+ <h1>Kolors</h1>
4
+ <span>Photorealistic Text-to-Image Synthesis and IP-Adapter</span>
5
+ <br>
6
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
7
+ <a href="https://github.com/Kwai-Kolors/Kolors"><img src="https://img.shields.io/static/v1?label=Kolors Code&message=Github&color=blue&logo=github-pages"></a> &ensp;
8
+ <a href="https://kwai-kolors.github.io/"><img src="https://img.shields.io/static/v1?label=Team%20Page&message=Page&color=green"></a> &ensp;
9
+ <a href="https://github.com/Kwai-Kolors/Kolors/blob/master/imgs/Kolors_paper.pdf"><img src="https://img.shields.io/static/v1?label=Tech Report&message=Arxiv:Kolors&color=red&logo=arxiv"></a> &ensp;
10
+ <a href="https://kolors.kuaishou.com/"><img src="https://img.shields.io/static/v1?label=Official Website&message=Page&color=green"></a>
11
+ </div>
12
+ </div>
13
+ </div>