Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipe = pipeline("image-text-to-text", model="
|
5 |
|
6 |
def launch(input):
|
7 |
out = pipe(input)
|
|
|
1 |
import gradio as gr
|
2 |
+
# Use a pipeline as a high-level helper
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline("image-text-to-text", model="AIDC-AI/Ovis2-4B", trust_remote_code=True)
|
6 |
|
7 |
def launch(input):
|
8 |
out = pipe(input)
|