Spaces:
Runtime error
Runtime error
Add style.css
Browse files
app.py
CHANGED
|
@@ -84,17 +84,7 @@ def main():
|
|
| 84 |
extract_tar()
|
| 85 |
model = Model(DEFAULT_MODEL_NAME, args.device)
|
| 86 |
|
| 87 |
-
|
| 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 |
+
}
|