Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import io
|
|
7 |
from PIL import Image
|
8 |
import json
|
9 |
from model import create_model
|
10 |
-
|
11 |
api_key = st.secrets["API"]
|
12 |
|
13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
7 |
from PIL import Image
|
8 |
import json
|
9 |
from model import create_model
|
10 |
+
import torch
|
11 |
api_key = st.secrets["API"]
|
12 |
|
13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|