hysts HF staff commited on
Commit
c75812b
·
1 Parent(s): a5e8732

Add style.css

Browse files
Files changed (2) hide show
  1. app.py +1 -7
  2. style.css +7 -0
app.py CHANGED
@@ -163,13 +163,7 @@ def main():
163
  args = parse_args()
164
  model = Model(args.device)
165
 
166
- css = '''
167
- h1#title {
168
- text-align: center;
169
- }
170
- '''
171
-
172
- with gr.Blocks(theme=args.theme, css=css) as demo:
173
  gr.Markdown('''<h1 id="title">VDIGPKU/CBNetV2</h1>
174
 
175
  This is an unofficial demo for [https://github.com/VDIGPKU/CBNetV2](https://github.com/VDIGPKU/CBNetV2).'''
 
163
  args = parse_args()
164
  model = Model(args.device)
165
 
166
+ with gr.Blocks(theme=args.theme, css='style.css') as demo:
 
 
 
 
 
 
167
  gr.Markdown('''<h1 id="title">VDIGPKU/CBNetV2</h1>
168
 
169
  This is an unofficial demo for [https://github.com/VDIGPKU/CBNetV2](https://github.com/VDIGPKU/CBNetV2).'''
style.css ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ h1 {
2
+ text-align: center;
3
+ }
4
+ img#visitor-badge {
5
+ display: block;
6
+ margin: auto;
7
+ }