conjugate / scripts /modal_example.py
Ryukijano's picture
Devin AI
Baseline: research workbench after redesign workflow
50fe1d0
Raw History Blame Contribute Delete
260 Bytes
import modal
app = modal.App("example-get-started")
@app.function()
def square(x: int) -> int:
print("This code is running on a remote worker!")
return x**2
@app.local_entrypoint()
def main() -> None:
print("the square is", square.remote(42))