Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
|
|
|
| 3 |
messages = [
|
| 4 |
{"role": "user", "content": "Who are you?"},
|
| 5 |
]
|
| 6 |
-
pipe = pipeline("image-text-to-text", model="
|
| 7 |
pipe(messages)
|
| 8 |
|
| 9 |
def launch(input):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
+
|
| 4 |
messages = [
|
| 5 |
{"role": "user", "content": "Who are you?"},
|
| 6 |
]
|
| 7 |
+
pipe = pipeline("image-text-to-text", model="ibm-granite/granite-vision-3.2-2b")
|
| 8 |
pipe(messages)
|
| 9 |
|
| 10 |
def launch(input):
|