forked from ailab/resnet-dogcat
更新 README.md
This commit is contained in:
parent
30ca939316
commit
8726b97d8e
|
@ -54,6 +54,7 @@ print(model.config.id2label[predicted_label])
|
||||||
```
|
```
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
from transformers import pipeline
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
pipe = pipeline("image-classification", model="ailab/resnet-dogcat")
|
pipe = pipeline("image-classification", model="ailab/resnet-dogcat")
|
||||||
gr.Interface.from_pipeline(pipe).launch(server_name="0.0.0.0")
|
gr.Interface.from_pipeline(pipe).launch(server_name="0.0.0.0")
|
||||||
|
|
Loading…
Reference in New Issue