Spaces:
Runtime error
Runtime error
ttcielott
commited on
Commit
·
73d486c
1
Parent(s):
0e0f6b5
fix error
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio.components import Image, Textbox
|
3 |
from fastai.vision.all import *
|
4 |
|
5 |
|
@@ -27,8 +26,8 @@ eg = ['cam_mit.jpg', 'dunphys.jpg', 'group.jpg']
|
|
27 |
|
28 |
gr.Interface(
|
29 |
fn=predict,
|
30 |
-
inputs=Image(shape=(512, 512)),
|
31 |
-
outputs=Textbox(type="number", label="Number of faces"),
|
32 |
title=title,
|
33 |
description=description,
|
34 |
examples=eg,
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from fastai.vision.all import *
|
3 |
|
4 |
|
|
|
26 |
|
27 |
gr.Interface(
|
28 |
fn=predict,
|
29 |
+
inputs=gr.inputs.Image(shape=(512, 512)),
|
30 |
+
outputs=gr.outputs.Textbox(type="number", label="Number of faces"),
|
31 |
title=title,
|
32 |
description=description,
|
33 |
examples=eg,
|