Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,8 @@ def app():
|
|
| 67 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
| 68 |
with gr.Column():
|
| 69 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
| 70 |
-
examples = gr.Examples(example_list
|
|
|
|
| 71 |
infer.click(
|
| 72 |
fn=predict,
|
| 73 |
inputs=image,
|
|
|
|
| 67 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
| 68 |
with gr.Column():
|
| 69 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
| 70 |
+
examples = gr.Examples(examples=example_list,
|
| 71 |
+
inputs=gr.Image(type='pil') )
|
| 72 |
infer.click(
|
| 73 |
fn=predict,
|
| 74 |
inputs=image,
|