Tom Claude commited on
Commit
e1f256c
·
1 Parent(s): bc6c8eb

fix: move theme back to gr.Blocks() for Gradio 5.x compatibility

Browse files

Gradio 5.x has theme in Blocks(), Gradio 6.x moved it to launch().
Using theme="soft" string works in both versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -199,7 +199,8 @@ def create_app():
199
  """Create and configure the Gradio application"""
200
 
201
  with gr.Blocks(
202
- title="NewPress AI - Johnny Harris Script Assistant"
 
203
  ) as app:
204
  app.queue() # Enable queue before defining event handlers for progress to work
205
 
@@ -313,6 +314,5 @@ if __name__ == "__main__":
313
  app.launch(
314
  server_name="0.0.0.0",
315
  server_port=7860,
316
- share=False,
317
- theme="soft"
318
  )
 
199
  """Create and configure the Gradio application"""
200
 
201
  with gr.Blocks(
202
+ title="NewPress AI - Johnny Harris Script Assistant",
203
+ theme="soft"
204
  ) as app:
205
  app.queue() # Enable queue before defining event handlers for progress to work
206
 
 
314
  app.launch(
315
  server_name="0.0.0.0",
316
  server_port=7860,
317
+ share=False
 
318
  )