Skip to content

Commit

Permalink
update quickstart (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernit authored Sep 9, 2024
1 parent 1556a35 commit d7bfcd7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions quickstart/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from beam import endpoint
from beam import function, Image


@endpoint(name="quickstart", cpu="100m", memory="100Mi")
def run():
print("🔮 This is running remotely on Beam!")
return {
"success": "Nice work! Check out the docs to continue: https://docs.beam.cloud/v2/getting-started/quickstart"
}
@function(image=Image(python_packages=["numpy"]))
def hello_world():
import numpy

return "I'm running in a remote container!"


print(hello_world.remote())

0 comments on commit d7bfcd7

Please sign in to comment.