Spaces:
Running
Running
fix theme error
Browse files
app.py
CHANGED
|
@@ -343,6 +343,34 @@ def create_interface():
|
|
| 343 |
|
| 344 |
with gr.Blocks(
|
| 345 |
title="城市地图海报生成器",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 346 |
) as demo:
|
| 347 |
# Header
|
| 348 |
gr.HTML("""
|
|
@@ -653,32 +681,4 @@ if __name__ == "__main__":
|
|
| 653 |
server_port=7860,
|
| 654 |
share=False,
|
| 655 |
show_error=True,
|
| 656 |
-
theme=gr.themes.Default(),
|
| 657 |
-
css="""
|
| 658 |
-
.header-title {
|
| 659 |
-
text-align: center;
|
| 660 |
-
font-size: 2em;
|
| 661 |
-
font-weight: bold;
|
| 662 |
-
margin-bottom: 0.5em;
|
| 663 |
-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 664 |
-
-webkit-background-clip: text;
|
| 665 |
-
-webkit-text-fill-color: transparent;
|
| 666 |
-
background-clip: text;
|
| 667 |
-
}
|
| 668 |
-
.header-subtitle {
|
| 669 |
-
text-align: center;
|
| 670 |
-
color: #666;
|
| 671 |
-
margin-bottom: 1.5em;
|
| 672 |
-
}
|
| 673 |
-
.section-title {
|
| 674 |
-
font-weight: 600;
|
| 675 |
-
font-size: 1.1em;
|
| 676 |
-
margin-bottom: 0.5em;
|
| 677 |
-
color: #333;
|
| 678 |
-
}
|
| 679 |
-
.output-image {
|
| 680 |
-
border-radius: 12px;
|
| 681 |
-
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
| 682 |
-
}
|
| 683 |
-
""",
|
| 684 |
)
|
|
|
|
| 343 |
|
| 344 |
with gr.Blocks(
|
| 345 |
title="城市地图海报生成器",
|
| 346 |
+
theme=gr.themes.Default(),
|
| 347 |
+
css="""
|
| 348 |
+
.header-title {
|
| 349 |
+
text-align: center;
|
| 350 |
+
font-size: 2em;
|
| 351 |
+
font-weight: bold;
|
| 352 |
+
margin-bottom: 0.5em;
|
| 353 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 354 |
+
-webkit-background-clip: text;
|
| 355 |
+
-webkit-text-fill-color: transparent;
|
| 356 |
+
background-clip: text;
|
| 357 |
+
}
|
| 358 |
+
.header-subtitle {
|
| 359 |
+
text-align: center;
|
| 360 |
+
color: #666;
|
| 361 |
+
margin-bottom: 1.5em;
|
| 362 |
+
}
|
| 363 |
+
.section-title {
|
| 364 |
+
font-weight: 600;
|
| 365 |
+
font-size: 1.1em;
|
| 366 |
+
margin-bottom: 0.5em;
|
| 367 |
+
color: #333;
|
| 368 |
+
}
|
| 369 |
+
.output-image {
|
| 370 |
+
border-radius: 12px;
|
| 371 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
| 372 |
+
}
|
| 373 |
+
""",
|
| 374 |
) as demo:
|
| 375 |
# Header
|
| 376 |
gr.HTML("""
|
|
|
|
| 681 |
server_port=7860,
|
| 682 |
share=False,
|
| 683 |
show_error=True,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 684 |
)
|