Spaces:
Sleeping
Sleeping
Fix: move css to Blocks constructor (Gradio 5.x compat)"
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ CSS = """
|
|
| 157 |
footer { display: none !important; }
|
| 158 |
"""
|
| 159 |
|
| 160 |
-
with gr.Blocks(title="🎬 Image-to-Video AI") as demo:
|
| 161 |
|
| 162 |
gr.HTML("""
|
| 163 |
<div class="main-header">
|
|
@@ -259,4 +259,4 @@ with gr.Blocks(title="🎬 Image-to-Video AI") as demo:
|
|
| 259 |
""")
|
| 260 |
|
| 261 |
if __name__ == "__main__":
|
| 262 |
-
demo.launch(
|
|
|
|
| 157 |
footer { display: none !important; }
|
| 158 |
"""
|
| 159 |
|
| 160 |
+
with gr.Blocks(title="🎬 Image-to-Video AI", css=CSS) as demo:
|
| 161 |
|
| 162 |
gr.HTML("""
|
| 163 |
<div class="main-header">
|
|
|
|
| 259 |
""")
|
| 260 |
|
| 261 |
if __name__ == "__main__":
|
| 262 |
+
demo.launch()
|