From f0c15db5739510459b5a67bd7955ff7c6b6b5198 Mon Sep 17 00:00:00 2001 From: danilyef Date: Mon, 25 Nov 2024 14:45:10 +0100 Subject: [PATCH] pr3 small fix --- homework_9/pr3/README.md | 4 ++-- homework_9/tests/gradio_func/test_gradio.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/homework_9/pr3/README.md b/homework_9/pr3/README.md index 53f310a..5a6b53d 100644 --- a/homework_9/pr3/README.md +++ b/homework_9/pr3/README.md @@ -1,8 +1,8 @@ ## Run ```bash -cd homework_9/pr3 -uvicorn app:app --reload +cd homework_9 +uvicorn pr3.app:app --reload ``` ## Tests diff --git a/homework_9/tests/gradio_func/test_gradio.py b/homework_9/tests/gradio_func/test_gradio.py index 5ae10bf..22fa786 100644 --- a/homework_9/tests/gradio_func/test_gradio.py +++ b/homework_9/tests/gradio_func/test_gradio.py @@ -36,4 +36,7 @@ def test_model_consistency(model): # Test multiple times to ensure consistency for _ in range(3): assert model.predict(text) == first_prediction - assert abs(model.predict_proba(text) - first_probability) < 1e-6 \ No newline at end of file + assert abs(model.predict_proba(text) - first_probability) < 1e-6 + + +