preston-cell commited on
Commit
b5858aa
·
verified ·
1 Parent(s): 8ab28c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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="HuggingFaceTB/SmolVLM-256M-Instruct")
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)