Spaces:
Running
Running
Update app.py
Browse files
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(
|
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
|