Spaces:
hysts
/
Running on Zero

hysts HF Staff commited on
Commit
f7bfc68
·
1 Parent(s): ad321d5

Fix layout shift on Gradio 6

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. style.css +1 -8
app.py CHANGED
@@ -160,7 +160,7 @@ examples = [
160
  ],
161
  ]
162
 
163
- with gr.Blocks(css_paths="style.css") as demo:
164
  gr.Markdown(DESCRIPTION)
165
 
166
  with gr.Group():
@@ -324,4 +324,4 @@ with gr.Blocks(css_paths="style.css") as demo:
324
  )
325
 
326
  if __name__ == "__main__":
327
- demo.queue(max_size=10).launch()
 
160
  ],
161
  ]
162
 
163
+ with gr.Blocks() as demo:
164
  gr.Markdown(DESCRIPTION)
165
 
166
  with gr.Group():
 
324
  )
325
 
326
  if __name__ == "__main__":
327
+ demo.queue(max_size=10).launch(css_paths="style.css")
style.css CHANGED
@@ -3,14 +3,7 @@ h1 {
3
  display: block;
4
  }
5
 
6
- #duplicate-button {
7
- margin: auto;
8
- color: #fff;
9
- background: #1565c0;
10
- border-radius: 100vh;
11
- }
12
-
13
- .contain {
14
  max-width: 730px;
15
  min-width: 500px;
16
  margin: auto;
 
3
  display: block;
4
  }
5
 
6
+ .gradio-container {
 
 
 
 
 
 
 
7
  max-width: 730px;
8
  min-width: 500px;
9
  margin: auto;