ashikshaffi08 commited on
Commit
e0cb5d5
1 Parent(s): f0c4f8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -167,9 +167,18 @@ class Seafoam(Base):
167
 
168
  seafoam = Seafoam()
169
 
170
- with gr.Blocks(theme=seafoam, analytics_enabled=True) as demo:
 
 
 
 
 
 
 
 
 
171
  gr.HTML(FONT)
172
- gr.Image("zang_pi.png", elem_id="custom-image", width=200, height=200)
173
  gr.HTML(HEADER)
174
  gr.HTML(EVALUATION_HEADER)
175
  gr.HTML(EVALUATION_DETAILS)
 
167
 
168
  seafoam = Seafoam()
169
 
170
+ custom_css = """
171
+ #custom-image {
172
+ display: block;
173
+ margin-left: auto;
174
+ margin-right: auto;
175
+ width: 50%;
176
+ }
177
+ """
178
+
179
+ with gr.Blocks(theme=seafoam, analytics_enabled=True, css=custom_css) as demo:
180
  gr.HTML(FONT)
181
+ gr.Image("zang_pi.png", elem_id="custom-image")
182
  gr.HTML(HEADER)
183
  gr.HTML(EVALUATION_HEADER)
184
  gr.HTML(EVALUATION_DETAILS)