From 1ae84937b957370a0cfc7b8f365d0ce5655b1fd8 Mon Sep 17 00:00:00 2001 From: "nils.lueem" Date: Sat, 3 Aug 2024 14:30:34 +0200 Subject: [PATCH] add rcfile --- .pylintrc | 2 ++ app.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..4758af7 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,2 @@ +[MASTER] +disable=import-error \ No newline at end of file diff --git a/app.py b/app.py index 9c0e8e6..96cea6f 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,6 @@ """ This module sets up a FastAPI server to interact with a text-generation model. -It uses Hugging Face transformers, Pydantic for request validation, and Torch for device management. +It uses Hugging Face transformers, pydantic for request validation, and Torch for device management. """ import os @@ -73,7 +73,7 @@ # Data model for making POST requests to /chat class ChatRequest(BaseModel): - """Class representing a data-model""" + """Class representing the data-model""" messages: list temperature: Union[float, None] = None top_p: Union[float, None] = None