Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
#is_black(x) : return x[0].isupper()
|
6 |
|
7 |
-
def input_img(img)
|
8 |
learn=load_learner('model.pkl')
|
9 |
race,_,probs = learn.predict(PILImage.create(img))
|
10 |
print(f"This is a: {race}.")
|
|
|
4 |
|
5 |
#is_black(x) : return x[0].isupper()
|
6 |
|
7 |
+
def input_img(img):
|
8 |
learn=load_learner('model.pkl')
|
9 |
race,_,probs = learn.predict(PILImage.create(img))
|
10 |
print(f"This is a: {race}.")
|