Instructions to use guicon/techchallenge-pet-computer-vision-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use guicon/techchallenge-pet-computer-vision-model with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://guicon/techchallenge-pet-computer-vision-model") - Notebooks
- Google Colab
- Kaggle
Download app.py from guicon/techchallenge-pet-computer-vision-model: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/guicon/techchallenge-pet-computer-vision-model/resolve/main/app.py
- Command line
-
hf download hf://guicon/techchallenge-pet-computer-vision-model/app.py
-
curl -L -o app.py https://huggingface.co/guicon/techchallenge-pet-computer-vision-model/resolve/main/app.py
395 Bytes
| import gradio as gr | |
| from predict import predict | |
| def diagnostico(image): | |
| result = predict(image) | |
| return f"Classe: {result['classe']}\nConfiança: {result['confidence']:.2%}" | |
| demo = gr.Interface( | |
| fn=diagnostico, | |
| inputs=gr.Image(type="pil"), | |
| outputs="text", | |
| title="Pet AI Diagnosis", | |
| description="Classificação de raças e análise dermatológica" | |
| ) | |
| demo.launch() | |