Gianpaolo Macario commited on
Commit
202872e
·
1 Parent(s): 63c2d46

feat: create MCP server from gradio app

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +4 -3
app.py CHANGED
@@ -64,4 +64,4 @@ demo = gr.ChatInterface(
64
  if __name__ == "__main__":
65
  ic()
66
  ic(gr.__version__)
67
- demo.launch()
 
64
  if __name__ == "__main__":
65
  ic()
66
  ic(gr.__version__)
67
+ demo.launch(mcp_server=True)
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
- gradio
2
- huggingface_hub==0.25.2
3
- icecream
 
 
1
+ huggingface_hub
2
+ icecream
3
+ mcp
4
+ gradio[mcp]==5.31.0