mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
Update README.md
This commit is contained in:
parent
0a0f91525e
commit
5b9d73d915
@ -54,6 +54,9 @@ label = gradio.outputs.Label(num_top_classes=3)
|
||||
gr.Interface(classify_image, imagein, label).launch();
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
You can supply your own model instead of the pretrained model above, as well as use different kinds of models or functions. Changing the `input` and `output` parameters in the `Interface` face object allow you to create different interfaces, depending on the needs of your model. Take a look at the python notebooks for more examples. The currently supported interfaces are as follows:
|
||||
|
||||
**Input interfaces**:
|
||||
@ -79,7 +82,7 @@ label = Label(num_top_classes=4)
|
||||
gradio.Interface(predict, sketchpad, label).launch();
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
#### Human DNA Variant Effect Prediction (Input: Textbox, Output: Label)
|
||||
|
||||
@ -87,7 +90,7 @@ gradio.Interface(predict, sketchpad, label).launch();
|
||||
gradio.Interface(predict, 'textbox', 'label').launch()
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### See more:
|
||||
Find more info on usage here: www.gradio.app.
|
||||
|
Loading…
Reference in New Issue
Block a user