You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/cli.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ def main():
165
165
ocr_parser=subparsers.add_parser('ocr_upload', help='Upload a file to the OCR endpoint and get the result.')
166
166
ocr_parser.add_argument('--file', type=str, default='examples/rmi-example.pdf', help='Path to the file to upload')
167
167
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')
169
169
ocr_parser.add_argument('--prompt', type=str, default=None, help='Prompt used for the Ollama model to fix or transform the file')
170
170
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')
171
171
ocr_parser.add_argument('--model', type=str, default='llama3.1', help='Model to use for the Ollama endpoint')
@@ -179,7 +179,7 @@ def main():
179
179
ocr_parser=subparsers.add_parser('ocr', help='Upload a file to the OCR endpoint and get the result.')
180
180
ocr_parser.add_argument('--file', type=str, default='examples/rmi-example.pdf', help='Path to the file to upload')
181
181
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')
183
183
ocr_parser.add_argument('--prompt', type=str, default=None, help='Prompt used for the Ollama model to fix or transform the file')
184
184
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')
185
185
ocr_parser.add_argument('--model', type=str, default='llama3.1', help='Model to use for the Ollama endpoint')
@@ -194,7 +194,7 @@ def main():
194
194
ocr_request_parser=subparsers.add_parser('ocr_request', help='Upload a file to the OCR endpoint via JSON and get the result.')
195
195
ocr_request_parser.add_argument('--file', type=str, default='examples/rmi-example.pdf', help='Path to the file to upload')
196
196
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')
198
198
ocr_request_parser.add_argument('--prompt', type=str, default=None, help='Prompt used for the Ollama model to fix or transform the file')
199
199
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')
200
200
ocr_request_parser.add_argument('--model', type=str, default='llama3.1', help='Model to use for the Ollama endpoint')
0 commit comments