Emperor555 Claude commited on
Commit
5cfd2e1
·
1 Parent(s): 82c1b69

Fix Modal deployment for updated API

Browse files

- Use add_local_dir/add_local_file instead of deprecated copy_local_*
- Add gradio[mcp] dependency

Deployed to: https://kaiser-data--explainor-serve.modal.run

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. modal_app.py +3 -3
modal_app.py CHANGED
@@ -14,13 +14,13 @@ app = modal.App("explainor")
14
  image = (
15
  modal.Image.debian_slim(python_version="3.11")
16
  .pip_install(
17
- "gradio>=5.0.0",
18
  "elevenlabs>=1.0.0",
19
  "httpx>=0.25.0",
20
  "python-dotenv>=1.0.0",
21
  )
22
- .copy_local_dir("src", "/app/src")
23
- .copy_local_file("app.py", "/app/app.py")
24
  )
25
 
26
 
 
14
  image = (
15
  modal.Image.debian_slim(python_version="3.11")
16
  .pip_install(
17
+ "gradio[mcp]>=5.0.0",
18
  "elevenlabs>=1.0.0",
19
  "httpx>=0.25.0",
20
  "python-dotenv>=1.0.0",
21
  )
22
+ .add_local_dir("src", remote_path="/app/src", copy=True)
23
+ .add_local_file("app.py", remote_path="/app/app.py", copy=True)
24
  )
25
 
26