mackenzietechdocs commited on
Commit
befbf22
·
1 Parent(s): c155b65

Fix Blocks initialization for Gradio 6.x

Browse files
Files changed (2) hide show
  1. app.py +3 -5
  2. requirements.txt +2 -2
app.py CHANGED
@@ -528,12 +528,10 @@ label, .label {
528
  """
529
 
530
  # Create the Gradio interface with dark theme
531
- demo = gr.Blocks(
532
  css=custom_css,
533
- title="Docs Navigator MCP - AI Documentation Assistant",
534
- )
535
-
536
- with demo:
537
 
538
  # Header with modern dark gradient
539
  gr.HTML("""
 
528
  """
529
 
530
  # Create the Gradio interface with dark theme
531
+ with gr.Blocks(
532
  css=custom_css,
533
+ title="Docs Navigator MCP - AI Documentation Assistant"
534
+ ) as demo:
 
 
535
 
536
  # Header with modern dark gradient
537
  gr.HTML("""
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
- mcp[cli]>=0.1.0
2
  anthropic>=0.36.0
3
  python-dotenv>=1.0.1
4
  gradio==6.0.2
5
  huggingface-hub>=0.26.0
6
- PyPDF2>=3.0.0
 
 
 
1
  anthropic>=0.36.0
2
  python-dotenv>=1.0.1
3
  gradio==6.0.2
4
  huggingface-hub>=0.26.0
5
+ PyPDF2>=3.0.0
6
+ mcp[cli]>=0.1.0