Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
-
import numpy as np
|
2 |
-
from PIL import Image
|
3 |
import torch
|
4 |
-
from fastapi import FastAPI,
|
5 |
-
from fastapi.responses import JSONResponse
|
6 |
from pydantic import BaseModel
|
7 |
import torch.nn as nn
|
8 |
import pickle
|
|
|
|
|
|
|
1 |
import torch
|
2 |
+
from fastapi import FastAPI, HTTPException
|
|
|
3 |
from pydantic import BaseModel
|
4 |
import torch.nn as nn
|
5 |
import pickle
|