Spaces:
No application file
No application file
File size: 442 Bytes
e42e5e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import ollama
from PIL import Image
class ChartVisionModel:
def __init__(self):
self.client = ollama.Client()
self.model = "llava:34b" # Using LLaVA for vision analysis
def analyze_chart(self, image):
response = self.client.generate(
model=self.model,
prompt="Analyze this technical chart in detail",
images=[image]
)
return response
|