Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def predict(img):
|
|
35 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
36 |
|
37 |
# %% [code] {"execution":{"iopub.status.busy":"2023-07-31T17:01:15.166908Z","iopub.execute_input":"2023-07-31T17:01:15.168263Z","iopub.status.idle":"2023-07-31T17:01:25.050227Z","shell.execute_reply.started":"2023-07-31T17:01:15.168215Z","shell.execute_reply":"2023-07-31T17:01:25.049147Z"}}
|
38 |
-
examples = ['
|
39 |
-
'
|
40 |
|
41 |
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)),
|
42 |
title = "bicycle detector",
|
|
|
35 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
36 |
|
37 |
# %% [code] {"execution":{"iopub.status.busy":"2023-07-31T17:01:15.166908Z","iopub.execute_input":"2023-07-31T17:01:15.168263Z","iopub.status.idle":"2023-07-31T17:01:25.050227Z","shell.execute_reply.started":"2023-07-31T17:01:15.168215Z","shell.execute_reply":"2023-07-31T17:01:25.049147Z"}}
|
38 |
+
examples = ['street_bicycle.jpg',
|
39 |
+
'street_image.jpg']
|
40 |
|
41 |
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)),
|
42 |
title = "bicycle detector",
|