@@ -12,20 +12,22 @@ def __init__(self, content=None, cache_ttl=300, llm=None):
12
12
self .llm = llm
13
13
14
14
def load_content_from_file (self , file_path : str ) -> Union [str , object ]:
15
- images = self .convert_to_images (file_path )
16
- results = []
17
- for _ , image_bytes in images .items ():
18
- image_stream = BytesIO (image_bytes )
19
- results .append ({"image" : image_stream })
20
- return results
15
+ pass
16
+ # images = self.convert_to_images(file_path)
17
+ # results = []
18
+ # for _, image_bytes in images.items():
19
+ # image_stream = BytesIO(image_bytes)
20
+ # results.append({"image": image_stream})
21
+ # return results
21
22
22
23
def load_content_from_stream (self , stream : BytesIO ) -> Union [str , object ]:
23
- images = self .convert_to_images (stream )
24
- results = []
25
- for _ , image_bytes in images .items ():
26
- image_stream = BytesIO (image_bytes )
27
- results .append ({"image" : image_stream })
28
- return results
24
+ pass
25
+ # images = self.convert_to_images(stream)
26
+ # results = []
27
+ # for _, image_bytes in images.items():
28
+ # image_stream = BytesIO(image_bytes)
29
+ # results.append({"image": image_stream})
30
+ # return results
29
31
30
32
def load_content_from_stream_list (self , stream : BytesIO ) -> List [Any ]:
31
33
return self .load_content_from_stream (stream )
0 commit comments