Spaces:
Sleeping
Sleeping
Commit
·
a7ff122
1
Parent(s):
bd0ff68
update: ImageLoader
Browse files
medrag_multi_modal/document_loader/load_image.py
CHANGED
@@ -64,8 +64,8 @@ class ImageLoader(TextLoader):
|
|
64 |
|
65 |
async def load_data(
|
66 |
self,
|
67 |
-
start_page: int,
|
68 |
-
end_page: int,
|
69 |
image_save_dir: str = "./images",
|
70 |
dataset_name: Optional[str] = None,
|
71 |
):
|
@@ -82,8 +82,8 @@ class ImageLoader(TextLoader):
|
|
82 |
with the specified name.
|
83 |
|
84 |
Args:
|
85 |
-
start_page (int): The starting page index (0-based) to process.
|
86 |
-
end_page (int): The ending page index (0-based) to process.
|
87 |
dataset_name (Optional[str]): The name of the Weave dataset to publish the
|
88 |
processed images to. Defaults to None.
|
89 |
|
|
|
64 |
|
65 |
async def load_data(
|
66 |
self,
|
67 |
+
start_page: Optional[int] = None,
|
68 |
+
end_page: Optional[int] = None,
|
69 |
image_save_dir: str = "./images",
|
70 |
dataset_name: Optional[str] = None,
|
71 |
):
|
|
|
82 |
with the specified name.
|
83 |
|
84 |
Args:
|
85 |
+
start_page (Optional[int]): The starting page index (0-based) to process.
|
86 |
+
end_page (Optional[int]): The ending page index (0-based) to process.
|
87 |
dataset_name (Optional[str]): The name of the Weave dataset to publish the
|
88 |
processed images to. Defaults to None.
|
89 |
|