Mandark-droid commited on
Commit
82b9e6e
·
1 Parent(s): 2f35f0d

fix: Remove theme parameter for Gradio 6 compatibility

Browse files

Gradio 6.0.0.dev4 has API changes where gr.Blocks() no longer accepts
theme parameter in the same way as Gradio 5.

Error was:
TypeError: BlockContext.__init__() got an unexpected keyword argument 'theme'

Fix: Removed theme=gr.themes.Soft() parameter from gr.Blocks()

The app will use default theme for now. Can revisit theming once
Gradio 6 API is more stable.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,7 +35,8 @@ except ValueError:
35
  def create_gradio_ui():
36
  """Create Gradio UI for testing MCP tools"""
37
 
38
- with gr.Blocks(title="TraceMind MCP Server", theme=gr.themes.Soft()) as demo:
 
39
  gr.Markdown("""
40
  # 🤖 TraceMind MCP Server
41
 
 
35
  def create_gradio_ui():
36
  """Create Gradio UI for testing MCP tools"""
37
 
38
+ # Note: Gradio 6 has different theme API
39
+ with gr.Blocks(title="TraceMind MCP Server") as demo:
40
  gr.Markdown("""
41
  # 🤖 TraceMind MCP Server
42