Nymbo commited on
Commit
bddf624
·
verified ·
1 Parent(s): 0d0a62b

Gradio 5.31->6.29; theme to launch(); declare mcp

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +2 -2
  3. requirements.txt +1 -0
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🌖
4
  colorFrom: gray
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 5.31.0
8
  app_file: app.py
9
  pinned: false
10
  short_description: Allow any LLM to execute Python code
 
4
  colorFrom: gray
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 6.29.0
8
  app_file: app.py
9
  pinned: false
10
  short_description: Allow any LLM to execute Python code
app.py CHANGED
@@ -25,12 +25,12 @@ def execute_code(code: str) -> str:
25
  # Create the Gradio interface
26
  demo = gr.Interface(
27
  fn=execute_code,
 
28
  inputs=gr.Code(label="Python Code", language="python"),
29
  outputs=gr.Textbox(label="Output"),
30
  title="Python Code Executor",
31
- theme="Nymbo/Nymbo_Theme",
32
  description="Execute Python code and see the output. This app is also an MCP server for LLMs."
33
  )
34
 
35
  if __name__ == "__main__":
36
- demo.launch(mcp_server=True)
 
25
  # Create the Gradio interface
26
  demo = gr.Interface(
27
  fn=execute_code,
28
+ api_name="execute_code",
29
  inputs=gr.Code(label="Python Code", language="python"),
30
  outputs=gr.Textbox(label="Output"),
31
  title="Python Code Executor",
 
32
  description="Execute Python code and see the output. This app is also an MCP server for LLMs."
33
  )
34
 
35
  if __name__ == "__main__":
36
+ demo.launch(mcp_server=True, theme="Nymbo/Nymbo_Theme")
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ mcp