TDN-M commited on
Commit
dbf4745
1 Parent(s): fb2a9bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -14,9 +14,9 @@ examples = [
14
  with gr.Row():
15
  for example in examples:
16
  with gr.Column():
17
- gr.Gallery(value=[example], label="Example").style(grid=[1], height="512px") # Adjust height as needed
18
 
19
- # Update the interface to include examples
20
  demo = gr.Interface(
21
  fn=demo.predict,
22
  inputs=demo.input_components,
@@ -24,6 +24,12 @@ demo = gr.Interface(
24
  examples=examples,
25
  title="TDN-M/East-asian-beauty",
26
  description="Demo for TDN-M/East-asian-beauty model.",
 
 
 
 
 
 
27
  )
28
 
29
  demo.launch()
 
14
  with gr.Row():
15
  for example in examples:
16
  with gr.Column():
17
+ gr.Gallery(value=[example], label="Example", elem_id="gallery").render() # Add elem_id
18
 
19
+ # Update the interface to include examples and CSS
20
  demo = gr.Interface(
21
  fn=demo.predict,
22
  inputs=demo.input_components,
 
24
  examples=examples,
25
  title="TDN-M/East-asian-beauty",
26
  description="Demo for TDN-M/East-asian-beauty model.",
27
+ css="""
28
+ #gallery .gallery-item {
29
+ height: 512px;
30
+ width: 512px;
31
+ }
32
+ """
33
  )
34
 
35
  demo.launch()