Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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-
|
| 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/
|
| 212 |
}
|
| 213 |
],
|
| 214 |
[
|
| 215 |
{
|
| 216 |
-
"text": "
|
| 217 |
-
"files": ["assets/additional-examples/
|
| 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 |
[
|