Mandark-droid
commited on
Commit
·
82b9e6e
1
Parent(s):
2f35f0d
fix: Remove theme parameter for Gradio 6 compatibility
Browse filesGradio 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.
app.py
CHANGED
|
@@ -35,7 +35,8 @@ except ValueError:
|
|
| 35 |
def create_gradio_ui():
|
| 36 |
"""Create Gradio UI for testing MCP tools"""
|
| 37 |
|
| 38 |
-
|
|
|
|
| 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 |
|