Relu / modal_intro.py
ServandoTorres's picture
Upload folder using huggingface_hub
a55ae21
Raw History Blame Contribute Delete
242 Bytes
import modal
stub = modal.Stub("example-get-started")
@stub.function()
def square(x):
print("This code is running on a remote worker!")
return x**2
@stub.local_entrypoint()
def main():
print("the square is", square.call(42))