Skip to content

Commit

Permalink
pr3 small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danilyef committed Nov 25, 2024
1 parent a9b48b5 commit f0c15db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homework_9/pr3/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Run

```bash
cd homework_9/pr3
uvicorn app:app --reload
cd homework_9
uvicorn pr3.app:app --reload
```

## Tests
5 changes: 4 additions & 1 deletion homework_9/tests/gradio_func/test_gradio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
assert abs(model.predict_proba(text) - first_probability) < 1e-6



0 comments on commit f0c15db

Please sign in to comment.