Spaces:
Runtime error
Runtime error
KiKi
commited on
Commit
·
5ed9dbe
1
Parent(s):
4a21f58
updated name of predict function
Browse files- app.py +1 -1
- predictor.py +1 -1
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def header_white_bg(text, fontsize = 40, bold = True):
|
|
| 26 |
)
|
| 27 |
|
| 28 |
def diagnose_health(file):
|
| 29 |
-
prediction =
|
| 30 |
return prediction
|
| 31 |
|
| 32 |
def app():
|
|
|
|
| 26 |
)
|
| 27 |
|
| 28 |
def diagnose_health(file):
|
| 29 |
+
prediction = predict(file)
|
| 30 |
return prediction
|
| 31 |
|
| 32 |
def app():
|
predictor.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
def
|
| 2 |
import torch
|
| 3 |
import numpy as np
|
| 4 |
import cv2
|
|
|
|
| 1 |
+
def predict(image_file):
|
| 2 |
import torch
|
| 3 |
import numpy as np
|
| 4 |
import cv2
|