Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ example_list = [["example/" + example] for example in os.listdir("example")]
|
|
| 75 |
# Create Gradio interface
|
| 76 |
demo = gr.Interface(
|
| 77 |
fn=predict,
|
| 78 |
-
inputs=gr.Image(
|
| 79 |
outputs=[
|
| 80 |
gr.Label(num_top_classes=5, label="Predictions"),
|
| 81 |
gr.Number(label="Prediction time (s)"),
|
|
|
|
| 75 |
# Create Gradio interface
|
| 76 |
demo = gr.Interface(
|
| 77 |
fn=predict,
|
| 78 |
+
inputs=gr.Image(sources=["upload"], type='pil'),
|
| 79 |
outputs=[
|
| 80 |
gr.Label(num_top_classes=5, label="Predictions"),
|
| 81 |
gr.Number(label="Prediction time (s)"),
|