import gradio as gr from transformers import pipeline examples = ["examples/example_0.jpg", "examples/example_1.jpg", "examples/example_2.jpg", "examples/example_3.jpg", "examples/example_4.jpg", "examples/example_5.jpg", "examples/example_6.jpg", "examples/example_7.jpg"] pipe = pipeline(task="image-classification", model="Kaludi/food-category-classification-v2.0") gr.Interface.from_pipeline(pipe, title="Food Category Classification App", description = "This is a Food Category Image Classifier model that has been trained by Kaludi to recognize 12 different categories of foods, which includes Bread, Dairy, Dessert, Egg, Fried Food, Fruit, Meat, Noodles, Rice, Seafood, Soup, and Vegetable. It can accurately classify an image of food into one of these categories by analyzing its visual features. This model can be used by food bloggers, restaurants, and recipe websites to quickly categorize and sort their food images, making it easier to manage their content and provide a better user experience.", article = "

Github | HuggingFace

", examples=examples, ).launch()