From aee3b1698943049833043aba703bec4a159547f9 Mon Sep 17 00:00:00 2001 From: wojciechwoszczek Date: Tue, 12 Dec 2023 12:43:03 +0100 Subject: [PATCH] One more configuration try --- .github/workflows/backend.yml | 2 +- src/app/api.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 4ac0f70..25b6f57 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -38,7 +38,7 @@ echo "MLFLOW_TRACKING_PASSWORD=${{ secrets.MLFLOW_TRACKING_PASSWORD }}" >> .env - name: Install packages # Install dependencies needed for tests (not for whole project) - run: pip install pytest mlflow python-dotenv fastapi httpx uvicorn + run: pip install pytest mlflow python-dotenv fastapi httpx torch torchvision pydantic - name: Run tests run: | diff --git a/src/app/api.py b/src/app/api.py index 724ff2d..b69ad49 100644 --- a/src/app/api.py +++ b/src/app/api.py @@ -2,7 +2,6 @@ from typing import List from PIL import Image from io import BytesIO -import uvicorn from fastapi import FastAPI, Request, File, UploadFile, HTTPException from torchvision import transforms import torch