Omibranch commited on
Commit
9d6970f
·
verified ·
1 Parent(s): 54caa31

Upload modal_test.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. modal_test.py +12 -0
modal_test.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import modal
2
+
3
+ app = modal.App("rift-test")
4
+
5
+ @app.function(cpu=1, timeout=30)
6
+ def hello():
7
+ return "ok"
8
+
9
+ @app.local_entrypoint()
10
+ def main():
11
+ result = hello.remote()
12
+ print(result)