hysts commited on
Commit
5c0e5ea
1 Parent(s): 1e528a9

Add style.css

Browse files
Files changed (2) hide show
  1. app.py +1 -16
  2. style.css +12 -0
app.py CHANGED
@@ -41,22 +41,7 @@ def main():
41
  args = parse_args()
42
  model = Model(args.device)
43
 
44
- css = '''
45
- h1#title {
46
- text-align: center;
47
- }
48
- #input-image {
49
- max-height: 300px;
50
- }
51
- #label-image {
52
- height: 300px;
53
- }
54
- #result-image {
55
- height: 300px;
56
- }
57
- '''
58
-
59
- with gr.Blocks(theme=args.theme, css=css) as demo:
60
  gr.Markdown('''<h1 id="title">Text2Human</h1>
61
 
62
  This is an unofficial demo for <a href="https://github.com/yumingj/Text2Human">https://github.com/yumingj/Text2Human</a>.
 
41
  args = parse_args()
42
  model = Model(args.device)
43
 
44
+ with gr.Blocks(theme=args.theme, css='style.css') as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  gr.Markdown('''<h1 id="title">Text2Human</h1>
46
 
47
  This is an unofficial demo for <a href="https://github.com/yumingj/Text2Human">https://github.com/yumingj/Text2Human</a>.
style.css ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ h1 {
2
+ text-align: center;
3
+ }
4
+ #input-image {
5
+ max-height: 300px;
6
+ }
7
+ #label-image {
8
+ height: 300px;
9
+ }
10
+ #result-image {
11
+ height: 300px;
12
+ }