jdelgado2002
commited on
Commit
•
865a466
1
Parent(s):
1587eea
Update app.py
Browse files
app.py
CHANGED
@@ -2,17 +2,7 @@ import gradio as gr
|
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
|
5 |
-
|
6 |
-
test_path = Path("/kaggle/input/aptos2019/test_images")
|
7 |
-
train_df = pd.read_csv("/kaggle/input/aptos2019/train_1.csv")
|
8 |
-
|
9 |
-
def get_x(r):
|
10 |
-
filename = f"{r['id_code']}.png"
|
11 |
-
file_path = train_path / filename
|
12 |
-
if os.path.exists(file_path):
|
13 |
-
return str(file_path)
|
14 |
-
else:
|
15 |
-
return "/kaggle/input/aptos2019/train_images/train_images/1ae8c165fd53.png"
|
16 |
|
17 |
def get_y(r): return r['diagnosis']
|
18 |
|
|
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
|
5 |
+
def get_x(r): return "/kaggle/input/aptos2019/train_images/train_images/1ae8c165fd53.png"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
def get_y(r): return r['diagnosis']
|
8 |
|