mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
tensorflow guide
This commit is contained in:
parent
10d1e3710f
commit
c71192db14
@ -72,7 +72,7 @@ Finally, we'll add one more parameter, the `examples`, which allows us to prepop
|
||||
```python
|
||||
import gradio as gr
|
||||
|
||||
gr.Interface(fn=predict,
|
||||
gr.Interface(fn=classify_image,
|
||||
inputs=gr.inputs.Image(shape=(224, 224)),
|
||||
outputs=gr.outputs.Label(num_top_classes=3),
|
||||
examples=["banana.jpg", "car.jpg"]).launch()
|
||||
|
Loading…
Reference in New Issue
Block a user