Spaces:
Running
Running
DiabeticOwl
commited on
Commit
•
c00f0b4
1
Parent(s):
6f8f813
Updating deprecated Image input parameter.
Browse files
app.py
CHANGED
@@ -43,7 +43,8 @@ article = (
|
|
43 |
)
|
44 |
demo = gr.Interface(
|
45 |
fn=predict,
|
46 |
-
inputs=gr.Image(shape=(288, 288), type='pil'),
|
|
|
47 |
outputs=[gr.Label(num_top_classes=5, label='Predictions'),
|
48 |
gr.Number(label='Prediction run time (s)')],
|
49 |
examples=list(Path('examples').glob('*.jpg')),
|
|
|
43 |
)
|
44 |
demo = gr.Interface(
|
45 |
fn=predict,
|
46 |
+
# inputs=gr.Image(shape=(288, 288), type='pil'),
|
47 |
+
inputs=gr.Image(type='pil'),
|
48 |
outputs=[gr.Label(num_top_classes=5, label='Predictions'),
|
49 |
gr.Number(label='Prediction run time (s)')],
|
50 |
examples=list(Path('examples').glob('*.jpg')),
|