muhammadtlha944 commited on
Commit
a94dd9e
·
verified ·
1 Parent(s): 03a0f2f

Fix: move css to Blocks constructor (Gradio 5.x compat)"

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(css=CSS)
 
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()