Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from fastai.vision.all import *
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
| 4 |
-
learn = torch.load('export.pkl')
|
| 5 |
|
| 6 |
actors = learn.dls.vocab
|
| 7 |
def classify_images(img):
|
|
|
|
| 1 |
from fastai.vision.all import *
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
| 4 |
+
learn = torch.load('export.pkl', map_location=torch.device('cpu'))
|
| 5 |
|
| 6 |
actors = learn.dls.vocab
|
| 7 |
def classify_images(img):
|