Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
build-small-hackathon
/
buglens
like
1
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
buglens
/
modal_test.py
vatche.thorossian
added modal
0b07b6d
about 1 month ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
240 Bytes
import
modal
app = modal.App(
"example-get-started"
)
@app.function()
def
square
(
x
):
print
(
"This code is running on a remote worker!"
)
return
x**
2
@app.local_entrypoint()
def
main
():
print
(
"the square is"
, square.remote(
42
))