PhDFlo commited on
Commit
87235b8
Β·
1 Parent(s): 50a6ba8

add req and modal app

Browse files
Files changed (4) hide show
  1. README.md +5 -5
  2. modal_app.py +16 -0
  3. pyproject.toml +10 -0
  4. requirements.txt +2 -0
README.md CHANGED
@@ -1,14 +1,14 @@
1
  ---
2
- title: Modal HF Connection
3
- emoji: πŸ”₯
4
- colorFrom: red
5
- colorTo: gray
6
  sdk: gradio
7
  sdk_version: 5.33.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
- short_description: Test of a Modal HuggingFace connection
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: MCP Chai1 Modal
3
+ emoji: πŸ‘
4
+ colorFrom: gray
5
+ colorTo: green
6
  sdk: gradio
7
  sdk_version: 5.33.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ short_description: MCP server to simulate folding of proteins
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
modal_app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import modal
2
+
3
+ app = modal.App("example-get-started")
4
+
5
+
6
+ @app.function()
7
+ def square(x):
8
+ print("This code is running on a remote worker!")
9
+ return x**2
10
+
11
+
12
+ if __name__ == "__main__":
13
+ # For local testing
14
+ with app.run():
15
+ result = square.remote(42)
16
+ print("the square is", result)
pyproject.toml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "modal-hf-connection"
3
+ version = "0.1.0"
4
+ description = "Add your description here"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = [
8
+ "gradio==5.33.0",
9
+ "modal==1.0.2"
10
+ ]
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio==5.33.0
2
+ modal==1.0.2