1
0
Fork 0

更新 README.md

This commit is contained in:
ailab 2024-05-27 14:21:12 +08:00
parent 30ca939316
commit 8726b97d8e
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ print(model.config.id2label[predicted_label])
```
```python
from transformers import pipeline
import gradio as gr
pipe = pipeline("image-classification", model="ailab/resnet-dogcat")
gr.Interface.from_pipeline(pipe).launch(server_name="0.0.0.0")