Rename to verbanote
This commit is contained in:
parent
be779f0aca
commit
f76213bace
5 changed files with 19 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
[tool.poetry]
|
||||
name = "nlp-interview-transcription"
|
||||
name = "verbanote"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Marty Oehme <marty.oehme@gmail.com>"]
|
||||
readme = "README.md"
|
||||
packages = [{include = "src"}]
|
||||
packages = [{include = "verbanote"}]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
|
|
17
verbanote/rp_handler.py
Normal file
17
verbanote/rp_handler.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
import runpod
|
||||
|
||||
def is_even(job):
|
||||
job_input = job["input"]
|
||||
num = job_input["number"]
|
||||
|
||||
if not isinstance(num, int):
|
||||
return {"error": "Integer required."}
|
||||
|
||||
if num % 2 == 0:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
runpod.serverless.start({"handler": is_even})
|
Loading…
Reference in a new issue