mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
Update README.md
This commit is contained in:
parent
a12a968a2c
commit
7a6d47a1b8
16
README.md
16
README.md
@ -33,35 +33,35 @@ You can supply your own model instead of the pretrained model above, as well as
|
|||||||
* Textbox
|
* Textbox
|
||||||
|
|
||||||
**Output interfaces**:
|
**Output interfaces**:
|
||||||
* Class
|
* Label
|
||||||
* Textbox
|
* Textbox
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
Here are a few screenshots that show examples of gradio interfaces
|
Here are a few screenshots that show examples of gradio interfaces
|
||||||
|
|
||||||
#### MNIST Digit Recognition (Input: Sketchpad, Output: Class)
|
#### MNIST Digit Recognition (Input: Sketchpad, Output: Label)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
iface = gradio.Interface(input='sketchpad', output='class', model=model, model_type='keras')
|
iface = gradio.Interface(input='sketchpad', output='label', model=model, model_type='keras')
|
||||||
iface.launch()
|
iface.launch()
|
||||||
```
|
```
|
||||||
|
|
||||||
![alt text](https://raw.githubusercontent.com/abidlabs/gradio/master/screenshots/mnist4.png)
|
![alt text](https://raw.githubusercontent.com/abidlabs/gradio/master/screenshots/mnist4.png)
|
||||||
|
|
||||||
#### Facial Emotion Detector (Input: Webcam, Output: Class)
|
#### Facial Emotion Detector (Input: Webcam, Output: Label)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
iface = gradio.Interface(input='webcam', output='class', model=model, model_type='keras')
|
iface = gradio.Interface(inputs='webcam', outputs='label', model=model, model_type='keras')
|
||||||
iface.launch()
|
iface.launch()
|
||||||
```
|
```
|
||||||
|
|
||||||
![alt text](https://raw.githubusercontent.com/abidlabs/gradio/master/screenshots/webcam_happy.png)
|
![alt text](https://raw.githubusercontent.com/abidlabs/gradio/master/screenshots/webcam_happy.png)
|
||||||
|
|
||||||
#### Sentiment Analysis (Input: Textbox, Output: Class)
|
#### Sentiment Analysis (Input: Textbox, Output: Label)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
iface = gradio.Interface(input='textbox', output='class', model=model, model_type='keras')
|
iface = gradio.Interface(inputs='textbox', outputs='label', model=model, model_type='keras')
|
||||||
iface.launch()
|
iface.launch()
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -69,6 +69,6 @@ iface.launch()
|
|||||||
|
|
||||||
### More Documentation
|
### More Documentation
|
||||||
|
|
||||||
More detailed documentation can be found on the gradio website: www.gradio.app.
|
More detailed and up-to-date documentation can be found on the gradio website: www.gradio.app.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user