Surn commited on
Commit
f71c416
·
1 Parent(s): 18c5b15

Add MCP Server

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -103,6 +103,7 @@ if __name__ == "__main__":
103
  launch_kwargs = {}
104
  launch_kwargs['allowed_paths'] = ["assets/", "data/_user_history", "/data/_user_history/Surn"]
105
  launch_kwargs['favicon_path'] = "assets/favicon.ico"
 
106
  #launch_kwargs['inbrowser'] = True
107
 
108
  demo_with_history.queue().launch(**launch_kwargs)
 
103
  launch_kwargs = {}
104
  launch_kwargs['allowed_paths'] = ["assets/", "data/_user_history", "/data/_user_history/Surn"]
105
  launch_kwargs['favicon_path'] = "assets/favicon.ico"
106
+ launch_kwargs['mcp_server'] = True # Enable MCP server
107
  #launch_kwargs['inbrowser'] = True
108
 
109
  demo_with_history.queue().launch(**launch_kwargs)
requirements.txt CHANGED
@@ -3,6 +3,7 @@
3
  filetype @ git+https://github.com/h2non/filetype.py.git
4
  gradio-client
5
  gradio[oauth]
 
6
  mutagen
7
  tqdm
8
  torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
 
3
  filetype @ git+https://github.com/h2non/filetype.py.git
4
  gradio-client
5
  gradio[oauth]
6
+ gradio[mcp]
7
  mutagen
8
  tqdm
9
  torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124