MCP_Chai1_Modal / modal_app.py
PhDFlo's picture
App plugged to modal
81c8a55
raw
history blame
303 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
if __name__ == "__main__":
# For local testing
with app.run():
result = square.remote(42)
print("the square is", result)