Spaces:
Runtime error
Runtime error
Commit History
-
Update app.py
Verified signature0aadfb0 -
Update requirements.txt
Verified signature42d6f37 -
Update app.py
Verified signatureKey Functionality and Components The application performs the following main steps: Model Setup: It uses the huggingface_hub library to download and extract a pre-trained AutoGluon MultiModal image predictor from a specified Hugging Face model repository (apsora/autoML_images_data). This model is loaded locally. Prediction Logic: The do_predict function takes an uploaded image, saves it temporarily, and then uses the loaded MultiModalPredictor to classify the image into one of two classes: "🍅 Tomato" or "🚫 Not a tomato." It returns the class probabilities for display. Interactive User Interface (Gradio): It creates a user-friendly web interface using Gradio where users can upload an image or capture one using a webcam. When a new image is provided, the do_predict function runs automatically and the result is displayed in a Gradio Label component, showing the predicted class and the confidence score (probability) for both "Tomato" and "Not a tomato." Example images are provided to …071f6bc -
Update requirements
Verified signature78fb8d2 -
Update requirements.txt
Verified signature2c8d053 -
Update app.py
Verified signaturee16f7b0 -
Update requirements
Verified signature9ae2b14 -
Update app.py
Verified signature5fb09aa -
Create clean_cache.sh
Verified signature3885c28 -
Create .dockerignore
Verified signature29e97e8 -
Create requirements.txt
Verified signature6a20dd5 -
Create requirements
Verified signature6d67e17 -
Create app.py
Verified signatureThis Python code creates an interactive image classification application using AutoGluon MultiModal and Gradio to determine if a picture contains a tomato. Key Functionality and Components The application performs the following main steps: Model Setup: It uses the huggingface_hub library to download and extract a pre-trained AutoGluon MultiModal image predictor from a specified Hugging Face model repository (apsora/autoML_images_data). This model is loaded locally. Prediction Logic: The do_predict function takes an uploaded image, saves it temporarily, and then uses the loaded MultiModalPredictor to classify the image into one of two classes: "🍅 Tomato" or "🚫 Not a tomato." It returns the class probabilities for display. Interactive User Interface (Gradio): It creates a user-friendly web interface using Gradio. Users can upload an image or capture one using a webcam.When a new image is provided, the do_predict function runs automatically and the result is displayed in a Gradio L…ecb2e52 -
initial commit
Verified signature92ac6cf