Update app.py
Browse files
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"
|
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()
|