mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-25 12:10:31 +08:00
Update README.md
This commit is contained in:
parent
b85e6b823f
commit
20929b79ec
19
README.md
19
README.md
@ -12,10 +12,10 @@ pip install gradio
|
||||
|
||||
## Usage
|
||||
|
||||
Gradio is super simple to use. The general way it works is something liek this:
|
||||
Gradio is very easy to use with your existing code. The general way it's used is something like this:
|
||||
|
||||
|
||||
```
|
||||
```python
|
||||
import tensorflow as tf
|
||||
import gradio
|
||||
|
||||
@ -45,14 +45,29 @@ Here are a few screenshots that show examples of gradio interfaces
|
||||
|
||||
#### MNIST Digit Recognition (Input: Sketchpad, Output: Class)
|
||||
|
||||
```python
|
||||
iface = gradio.Interface(input='sketchpad', output='class', model=model, model_type='keras')
|
||||
iface.launch()
|
||||
```
|
||||
|
||||

|
||||
|
||||
#### Facial Emotion Detector (Input: Webcam, Output: Class)
|
||||
|
||||
```python
|
||||
iface = gradio.Interface(input='webcam', output='class', model=model, model_type='keras')
|
||||
iface.launch()
|
||||
```
|
||||
|
||||

|
||||
|
||||
#### Sentiment Analysis (Input: Textbox, Output: Class)
|
||||
|
||||
```python
|
||||
iface = gradio.Interface(input='textbox', output='class', model=model, model_type='keras')
|
||||
iface.launch()
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user