Instructions to use BadMD/Pilot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BadMD/Pilot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="BadMD/Pilot") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("BadMD/Pilot") model = AutoModelForImageClassification.from_pretrained("BadMD/Pilot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,4 +18,4 @@ def classify_image(image):
|
|
| 18 |
interface = gr.Interface(fn=classify_image,
|
| 19 |
inputs='image',
|
| 20 |
examples=['flower-1.jpeg', 'flower-2.jpeg'],
|
| 21 |
-
outputs='label').launch(
|
|
|
|
| 18 |
interface = gr.Interface(fn=classify_image,
|
| 19 |
inputs='image',
|
| 20 |
examples=['flower-1.jpeg', 'flower-2.jpeg'],
|
| 21 |
+
outputs='label').launch()
|