object-memory / test_scripts /test_modal.py
russ4stall
fresh history
24f3fb6
raw
history blame contribute delete
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))