Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
# #demo = gr.Interface(fn=func_classi, inputs=[gr.func_classi()], outputs=[gr.Textbook(label="Results")])
|
30 |
# #demo.launch(inline=False)
|
31 |
|
32 |
-
|
33 |
def input_img(img):
|
34 |
race,_,probs = learn.predict(PILImage.create('img'))
|
35 |
#race,_,probs = learn.predict(PILImage.create(img))
|
|
|
29 |
# #demo = gr.Interface(fn=func_classi, inputs=[gr.func_classi()], outputs=[gr.Textbook(label="Results")])
|
30 |
# #demo.launch(inline=False)
|
31 |
|
32 |
+
from fastai.vision.all import *
|
33 |
def input_img(img):
|
34 |
race,_,probs = learn.predict(PILImage.create('img'))
|
35 |
#race,_,probs = learn.predict(PILImage.create(img))
|