Skip to content

Commit 49c50ed

Browse files
authored
Merge pull request #47 from CatchTheTornado/feat_27_llama3.2-vision
[fix] disable_ocr_cache fix
2 parents 40ef226 + 9b54771 commit 49c50ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def main():
165165
ocr_parser = subparsers.add_parser('ocr_upload', help='Upload a file to the OCR endpoint and get the result.')
166166
ocr_parser.add_argument('--file', type=str, default='examples/rmi-example.pdf', help='Path to the file to upload')
167167
ocr_parser.add_argument('--ocr_cache', default=True, action='store_true', help='Enable OCR result caching')
168-
ocr_parser.add_argument('--disable_ocr_cache', default=True, action='store_true', help='Disable OCR result caching')
168+
ocr_parser.add_argument('--disable_ocr_cache', default=False, action='store_true', help='Disable OCR result caching')
169169
ocr_parser.add_argument('--prompt', type=str, default=None, help='Prompt used for the Ollama model to fix or transform the file')
170170
ocr_parser.add_argument('--prompt_file', default=None, type=str, help='Prompt file name used for the Ollama model to fix or transform the file')
171171
ocr_parser.add_argument('--model', type=str, default='llama3.1', help='Model to use for the Ollama endpoint')
@@ -179,7 +179,7 @@ def main():
179179
ocr_parser = subparsers.add_parser('ocr', help='Upload a file to the OCR endpoint and get the result.')
180180
ocr_parser.add_argument('--file', type=str, default='examples/rmi-example.pdf', help='Path to the file to upload')
181181
ocr_parser.add_argument('--ocr_cache', default=True, action='store_true', help='Enable OCR result caching')
182-
ocr_parser.add_argument('--disable_ocr_cache', default=True, action='store_true', help='Disable OCR result caching')
182+
ocr_parser.add_argument('--disable_ocr_cache', default=False, action='store_true', help='Disable OCR result caching')
183183
ocr_parser.add_argument('--prompt', type=str, default=None, help='Prompt used for the Ollama model to fix or transform the file')
184184
ocr_parser.add_argument('--prompt_file', default=None, type=str, help='Prompt file name used for the Ollama model to fix or transform the file')
185185
ocr_parser.add_argument('--model', type=str, default='llama3.1', help='Model to use for the Ollama endpoint')
@@ -194,7 +194,7 @@ def main():
194194
ocr_request_parser = subparsers.add_parser('ocr_request', help='Upload a file to the OCR endpoint via JSON and get the result.')
195195
ocr_request_parser.add_argument('--file', type=str, default='examples/rmi-example.pdf', help='Path to the file to upload')
196196
ocr_request_parser.add_argument('--ocr_cache', default=True, action='store_true', help='Enable OCR result caching')
197-
ocr_request_parser.add_argument('--disable_ocr_cache', default=True, action='store_true', help='Disable OCR result caching')
197+
ocr_request_parser.add_argument('--disable_ocr_cache', default=False, action='store_true', help='Disable OCR result caching')
198198
ocr_request_parser.add_argument('--prompt', type=str, default=None, help='Prompt used for the Ollama model to fix or transform the file')
199199
ocr_request_parser.add_argument('--prompt_file', default=None, type=str, help='Prompt file name used for the Ollama model to fix or transform the file')
200200
ocr_request_parser.add_argument('--model', type=str, default='llama3.1', help='Model to use for the Ollama endpoint')

0 commit comments

Comments
 (0)