Skip to content

Instantly share code, notes, and snippets.

@allenlsy
Last active May 6, 2021 00:33
Show Gist options
  • Select an option

  • Save allenlsy/b87acd2f95a247cba134db96b94811df to your computer and use it in GitHub Desktop.

Select an option

Save allenlsy/b87acd2f95a247cba134db96b94811df to your computer and use it in GitHub Desktop.
demo-fass1.py
from funcinterface import FunctionInterface
class Function(FunctionInterface):
def run(self, request_data):
query = request_data['q']
tokens = query.split(",")
a, b = int(tokens[0]), int(tokens[1])
return str(a+b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment