Ronith55 commited on
Commit
2798fcf
·
verified ·
1 Parent(s): f7acf84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ model = AutoModel.from_pretrained("deepseek-ai/deepseek-vl2-small", trust_remote
10
 
11
  # ✅ Function to process image and text
12
  def predict(image_path, text_prompt):
13
- image = Image.open(image_path).convert("RGB")
14
  messages = [{"role": "user", "content": text_prompt}]
15
  result = pipe(image, messages)
16
  return result
 
10
 
11
  # ✅ Function to process image and text
12
  def predict(image_path, text_prompt):
13
+ image = Image.open("C:\Users\70088531\Downloads\sample_img2.JPG").convert("RGB")
14
  messages = [{"role": "user", "content": text_prompt}]
15
  result = pipe(image, messages)
16
  return result