Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,9 @@ __all__ = ['is_rock', 'learn', 'classify_image', 'categories', 'image', 'label',
|
|
5 |
|
6 |
def is_rock(x): return x[0].issuper()
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
10 |
|
11 |
categories = ('paper', 'rock', 'scissors')
|
|
|
5 |
|
6 |
def is_rock(x): return x[0].issuper()
|
7 |
|
8 |
+
import torch
|
9 |
+
|
10 |
+
learn = torch.load('rps_model.pkl', map_location=torch.device('cpu'))
|
11 |
|
12 |
|
13 |
categories = ('paper', 'rock', 'scissors')
|