diff --git a/pyproject.toml b/pyproject.toml index 18cea02..5a0337f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [tool.poetry] -name = "nlp-interview-transcription" +name = "verbanote" version = "0.1.0" description = "" authors = ["Marty Oehme "] readme = "README.md" -packages = [{include = "src"}] +packages = [{include = "verbanote"}] [tool.poetry.dependencies] python = "^3.11" diff --git a/nlp_interview_transcription/__init__.py b/verbanote/__init__.py similarity index 100% rename from nlp_interview_transcription/__init__.py rename to verbanote/__init__.py diff --git a/nlp_interview_transcription/model.py b/verbanote/model.py similarity index 100% rename from nlp_interview_transcription/model.py rename to verbanote/model.py diff --git a/nlp_interview_transcription/notebook.py b/verbanote/notebook.py similarity index 100% rename from nlp_interview_transcription/notebook.py rename to verbanote/notebook.py diff --git a/verbanote/rp_handler.py b/verbanote/rp_handler.py new file mode 100644 index 0000000..a72f565 --- /dev/null +++ b/verbanote/rp_handler.py @@ -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})