Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,10 @@ def get_x(row, is_test=False):
|
|
12 |
return Image.fromarray(transformed_image)
|
13 |
pass
|
14 |
|
|
|
|
|
|
|
|
|
15 |
learn = load_learner('your_model.pkl')
|
16 |
|
17 |
categories = ('Glaucoma Present','Glaucoma Absent')
|
|
|
12 |
return Image.fromarray(transformed_image)
|
13 |
pass
|
14 |
|
15 |
+
def get_y(row):
|
16 |
+
return row['label'] # adjust this depending on how your csv is structured
|
17 |
+
pass
|
18 |
+
|
19 |
learn = load_learner('your_model.pkl')
|
20 |
|
21 |
categories = ('Glaucoma Present','Glaucoma Absent')
|