Spaces:
Sleeping
Sleeping
Update app.py from anycoder
Browse files
app.py
CHANGED
|
@@ -209,6 +209,7 @@ def analyze_adversarial_resilience(
|
|
| 209 |
# GRADIO APPLICATION
|
| 210 |
# ============================================================================
|
| 211 |
|
|
|
|
| 212 |
with gr.Blocks(
|
| 213 |
title="Adversarial AI Threat Simulator",
|
| 214 |
fill_height=True,
|
|
@@ -625,9 +626,9 @@ with gr.Blocks(
|
|
| 625 |
""")
|
| 626 |
|
| 627 |
# Launch the application
|
|
|
|
| 628 |
demo.launch(
|
| 629 |
theme=custom_theme,
|
| 630 |
-
title="Adversarial AI Threat Simulator",
|
| 631 |
css="""
|
| 632 |
.gradio-container {
|
| 633 |
max-width: 1400px !important;
|
|
|
|
| 209 |
# GRADIO APPLICATION
|
| 210 |
# ============================================================================
|
| 211 |
|
| 212 |
+
# Gradio 6: title goes in Blocks() constructor, NOT in launch()
|
| 213 |
with gr.Blocks(
|
| 214 |
title="Adversarial AI Threat Simulator",
|
| 215 |
fill_height=True,
|
|
|
|
| 626 |
""")
|
| 627 |
|
| 628 |
# Launch the application
|
| 629 |
+
# Gradio 6: theme, css, footer_links go in launch(), but title goes in Blocks()
|
| 630 |
demo.launch(
|
| 631 |
theme=custom_theme,
|
|
|
|
| 632 |
css="""
|
| 633 |
.gradio-container {
|
| 634 |
max-width: 1400px !important;
|