from typing import Optional, List
from fastapi import FastAPI, File, UploadFile, Request
from sqlmodel import Field, Session, SQLModel, create_engine, select
from pydantic import BaseModel
from network import Network
import requests
from PIL import Image as ImagePIL
import torchvision as tv

app = FastAPI()
network = Network()
network.model.eval()


class Image(SQLModel, table=True):
    key: Optional[int] = 