Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,14 @@ from threading import Thread
|
|
9 |
import platform
|
10 |
from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIteratorStreamer
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
"""
|
14 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
|
9 |
import platform
|
10 |
from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIteratorStreamer
|
11 |
|
12 |
+
from transformers import pipeline
|
13 |
+
|
14 |
+
messages = [
|
15 |
+
{"role": "user", "content": "Who are you?"},
|
16 |
+
]
|
17 |
+
pipe = pipeline("image-text-to-text", model="google/gemma-3-4b-it")
|
18 |
+
print(pipe(messages))
|
19 |
+
|
20 |
|
21 |
"""
|
22 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|