From f76213bace203676c388189c701ae433f394ac47 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 20 Aug 2023 12:31:14 +0200 Subject: [PATCH] Rename to verbanote --- pyproject.toml | 4 ++-- .../__init__.py | 0 .../model.py | 0 .../notebook.py | 0 verbanote/rp_handler.py | 17 +++++++++++++++++ 5 files changed, 19 insertions(+), 2 deletions(-) rename {nlp_interview_transcription => verbanote}/__init__.py (100%) rename {nlp_interview_transcription => verbanote}/model.py (100%) rename {nlp_interview_transcription => verbanote}/notebook.py (100%) create mode 100644 verbanote/rp_handler.py 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})