gmonsoon commited on
Commit
10de841
Β·
verified Β·
1 Parent(s): 5e22b42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,7 +14,7 @@ from loguru import logger
14
  from PIL import Image
15
  from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIteratorStreamer
16
 
17
- model_id = os.getenv("MODEL_ID", "gmonsoon/gemma-3-indonesia-energy-transition")
18
  processor = AutoProcessor.from_pretrained(model_id, padding_side="left")
19
  model = Gemma3ForConditionalGeneration.from_pretrained(
20
  model_id, device_map="auto", torch_dtype=torch.bfloat16, attn_implementation="eager"
@@ -208,13 +208,13 @@ examples = [
208
  [
209
  {
210
  "text": "Jelaskan chart ini",
211
- "files": ["assets/additional-examples/mixplan-chart.png"],
212
  }
213
  ],
214
  [
215
  {
216
- "text": "I already have this supplement <image> and I want to buy this one <image>. Any warnings I should know about?",
217
- "files": ["assets/additional-examples/pill1.png", "assets/additional-examples/pill2.png"],
218
  }
219
  ],
220
  [
 
14
  from PIL import Image
15
  from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIteratorStreamer
16
 
17
+ model_id = os.getenv("MODEL_ID", "gmonsoon/gemma-3-4b-REnewbie-v1")
18
  processor = AutoProcessor.from_pretrained(model_id, padding_side="left")
19
  model = Gemma3ForConditionalGeneration.from_pretrained(
20
  model_id, device_map="auto", torch_dtype=torch.bfloat16, attn_implementation="eager"
 
208
  [
209
  {
210
  "text": "Jelaskan chart ini",
211
+ "files": ["assets/additional-examples/IESR-infographic.jpg"],
212
  }
213
  ],
214
  [
215
  {
216
+ "text": "Saya membayar BBM sebesar ini <image> berapa liter BBM yang saya dapatkan jika saya membeli dengan uang Rp1.000.000?",
217
+ "files": ["assets/additional-examples/struk.jpeg"],
218
  }
219
  ],
220
  [