Update tools.py
Browse files
tools.py
CHANGED
|
@@ -61,7 +61,10 @@ def drug_tools(llm: BaseLanguageModel, api_keys: dict = {}, verbose=True, image
|
|
| 61 |
if file_path is not None:
|
| 62 |
all_tools += [pdfreader(file_path),
|
| 63 |
]
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
| 65 |
return all_tools
|
| 66 |
|
| 67 |
|
|
@@ -123,5 +126,8 @@ def make_tools(llm: BaseLanguageModel, api_keys: dict = {}, verbose=True, image
|
|
| 123 |
if file_path is not None:
|
| 124 |
all_tools += [pdfreader(file_path),
|
| 125 |
]
|
| 126 |
-
|
|
|
|
|
|
|
|
|
|
| 127 |
return all_tools
|
|
|
|
| 61 |
if file_path is not None:
|
| 62 |
all_tools += [pdfreader(file_path),
|
| 63 |
]
|
| 64 |
+
if image_path is not None:
|
| 65 |
+
all_tools += [Imageanalysis(image_path),
|
| 66 |
+
|
| 67 |
+
]
|
| 68 |
return all_tools
|
| 69 |
|
| 70 |
|
|
|
|
| 126 |
if file_path is not None:
|
| 127 |
all_tools += [pdfreader(file_path),
|
| 128 |
]
|
| 129 |
+
if image_path is not None:
|
| 130 |
+
all_tools += [Imageanalysis(image_path),
|
| 131 |
+
|
| 132 |
+
]
|
| 133 |
return all_tools
|