Skip to content

Commit

Permalink
del
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorenkovaURFU committed Mar 13, 2024
1 parent 08a6df6 commit 7b70fbe
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,13 @@

@app.get("/")
def root() -> dict:
"""
This function works from root
and demonstrates welcome message.
Returns:
dict: Welcome message
"""
return {"message": "Hello World"}


@app.post("/predict/")
# функция для расчета модели,
# в "input" передаются текст
def predict(input: dict) -> dict:
"""
This function predicts
Args:
input (dict): dict with text for prediction
Returns:
dict: dict with the prediction of text sentiment
"""
inputs = tokenizer(
input["text"],
max_length=512,
Expand Down

0 comments on commit 7b70fbe

Please sign in to comment.