mrdbourke commited on
Commit
2adbb3d
Β·
verified Β·
1 Parent(s): 1c64476

Uploading FoodExtract demo app.py

Browse files
Files changed (1) hide show
  1. README.md +17 -5
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: FoodExtract Fine-tuned LLM Structued Data Extractor
3
  emoji: πŸ“βž‘οΈπŸŸ
4
  colorFrom: green
5
  colorTo: blue
@@ -12,13 +12,23 @@ license: apache-2.0
12
  """
13
  Fine-tuned Gemma 3 270M to extract food and drink items from raw text.
14
 
15
- Input can be any form of real text and output will be a formatted string such as the following:
 
 
 
 
 
 
 
 
 
 
16
 
17
  ```
18
  food_or_drink: 1
19
  tags: fi, re
20
- foods: tacos, milk, red apple, pineapple, cherries, fried chicken, steak, mayonnaise
21
- drinks: iced latte, matcha latte
22
  ```
23
 
24
  The tags map to the following items:
@@ -34,5 +44,7 @@ tags_dict = {'np': 'nutrition_panel',
34
  'fp': 'food_packaging'}
35
  ```
36
 
37
- You can see walkthrough step by step code details at: https://www.learnhuggingface.com/notebooks/hugging_face_llm_full_fine_tune_tutorial
 
 
38
  """
 
1
  ---
2
+ title: FoodExtract Fine-tuned LLM Structued Data Extractor v1
3
  emoji: πŸ“βž‘οΈπŸŸ
4
  colorFrom: green
5
  colorTo: blue
 
12
  """
13
  Fine-tuned Gemma 3 270M to extract food and drink items from raw text.
14
 
15
+ Input can be any form of real text (mostly focused on shorter image caption-like texts):
16
+
17
+ ```
18
+ A truly eclectic and mouth-watering feast is laid out on the table, featuring savory favorites like crispy fried chicken,
19
+ a perfectly seared steak, and loaded tacos, complete with a side of creamy mayonnaise. To balance the heavier mains,
20
+ a vibrant assortment of fresh fruit sits nearby, including a crisp red apple, a tropical pineapple, and a scattering of
21
+ sweet cherries. Thirst-quenching options complete this extravagant spread, with a classic iced latte, an earthy matcha latte,
22
+ and a simple, refreshing glass of milk ready to be enjoyed.
23
+ ```
24
+
25
+ And output will be a formatted string such as the following:
26
 
27
  ```
28
  food_or_drink: 1
29
  tags: fi, re
30
+ foods: tacos,red apple, pineapple, cherries, fried chicken, steak, mayonnaise
31
+ drinks: iced latte, matcha latte, milk
32
  ```
33
 
34
  The tags map to the following items:
 
44
  'fp': 'food_packaging'}
45
  ```
46
 
47
+ * You can see walkthrough step by step code details at: https://www.learnhuggingface.com/notebooks/hugging_face_llm_full_fine_tune_tutorial
48
+ * See the fine-tuning dataset: https://huggingface.co/datasets/mrdbourke/FoodExtract-1k
49
+ * See the fine-tuned model: https://huggingface.co/mrdbourke/FoodExtract-gemma-3-270m-fine-tune-v1
50
  """