Kaludi commited on
Commit
e5a7589
1 Parent(s): 54c3dfc

Upload 11 files

Browse files
Files changed (3) hide show
  1. app.py +4 -4
  2. examples/example_2.jpg +0 -0
  3. examples/example_3.jpg +0 -0
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
3
 
4
  examples = ["examples/example_0.jpg",
5
  "examples/example_1.jpg",
6
- "examples/example_2.2.jpg",
7
  "examples/example_3.jpg",
8
  "examples/example_4.jpg",
9
  "examples/example_5.jpg",
@@ -11,10 +11,10 @@ examples = ["examples/example_0.jpg",
11
  "examples/example_7.jpg"]
12
 
13
  pipe = pipeline(task="image-classification",
14
- model="Kaludi/food-category-classification")
15
  gr.Interface.from_pipeline(pipe,
16
- title="Food Category Classification App",
17
- description = "This is a Food Category Image Classifier model that has been trained by <strong><a href='https://huggingface.co/Kaludi'>Kaludi</a></strong> to recognize <strong>11</strong> different categories of foods, including <strong>Bread, Dairy Product, Dessert, Egg, Fried Food, Meat, Noodles-Pasta, Rice, Seafood, Soup,</strong> and <strong>Vegetable-Fruit</strong>. 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.",
18
  article = "<p style='text-align: center'><a href='https://github.com/Kaludii'>Github</a> | <a href='https://huggingface.co/Kaludi'>HuggingFace</a></p>",
19
  examples=examples,
20
  ).launch()
 
3
 
4
  examples = ["examples/example_0.jpg",
5
  "examples/example_1.jpg",
6
+ "examples/example_2.jpg",
7
  "examples/example_3.jpg",
8
  "examples/example_4.jpg",
9
  "examples/example_5.jpg",
 
11
  "examples/example_7.jpg"]
12
 
13
  pipe = pipeline(task="image-classification",
14
+ model="Kaludi/food-category-classification-v2.0")
15
  gr.Interface.from_pipeline(pipe,
16
+ title="Food Category Classification App V2",
17
+ description = "This is a Food Category Image Classifier model that has been trained by <strong><a href='https://huggingface.co/Kaludi'>Kaludi</a></strong> to recognize <strong>12</strong> different categories of foods, which includes <strong>Bread</strong>, <strong>Dairy</strong>, <strong>Dessert</strong>, <strong>Egg</strong>, <strong>Fried Food</strong>, <strong>Fruit</strong>, <strong>Meat</strong>, <strong>Noodles</strong>, <strong>Rice</strong>, <strong>Seafood</strong>, <strong>Soup</strong>, and <strong>Vegetable</strong>. 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.",
18
  article = "<p style='text-align: center'><a href='https://github.com/Kaludii'>Github</a> | <a href='https://huggingface.co/Kaludi'>HuggingFace</a></p>",
19
  examples=examples,
20
  ).launch()
examples/example_2.jpg ADDED
examples/example_3.jpg CHANGED