hysts HF staff commited on
Commit
d60da15
·
1 Parent(s): b572070

Add style.css

Browse files
Files changed (2) hide show
  1. app.py +1 -11
  2. style.css +7 -0
app.py CHANGED
@@ -84,17 +84,7 @@ def main():
84
  extract_tar()
85
  model = Model(DEFAULT_MODEL_NAME, args.device)
86
 
87
- css = '''
88
- h1#title {
89
- text-align: center;
90
- }
91
- img#overview {
92
- max-width: 1000px;
93
- max-height: 600px;
94
- }
95
- '''
96
-
97
- with gr.Blocks(theme=args.theme, css=css) as demo:
98
  gr.Markdown('''<h1 id="title">MMDetection</h1>
99
 
100
  This is an unofficial demo for [https://github.com/open-mmlab/mmdetection](https://github.com/open-mmlab/mmdetection).
 
84
  extract_tar()
85
  model = Model(DEFAULT_MODEL_NAME, args.device)
86
 
87
+ with gr.Blocks(theme=args.theme, css='style.css') as demo:
 
 
 
 
 
 
 
 
 
 
88
  gr.Markdown('''<h1 id="title">MMDetection</h1>
89
 
90
  This is an unofficial demo for [https://github.com/open-mmlab/mmdetection](https://github.com/open-mmlab/mmdetection).
style.css ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ h1#title {
2
+ text-align: center;
3
+ }
4
+ img#overview {
5
+ max-width: 1000px;
6
+ max-height: 600px;
7
+ }