Skip to content

Commit a8e2c85

Browse files
committed
flake8
1 parent 391bc11 commit a8e2c85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

handlers/ocr-handler/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def render_ocr():
6868
logging.error("Request validation failed")
6969
logging.pii(f"Validation error: {error.message}")
7070
return jsonify("Invalid Request JSON format"), 400
71-
71+
7272
# Check preprocessor data
7373
preprocessors = content['preprocessors']
7474

preprocessors/text-followup/text-followup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ def followup():
298298
logging.error(ollama_error_msg + " returning 204")
299299
return jsonify("Invalid LLM results"), 204
300300
else:
301-
logging.error(f"Error {response.status_code}: [response text redacted]")
301+
logging.error(f"Error {response.status_code}: \
302+
[response text redacted]")
302303
return jsonify("Invalid response from ollama"), 204
303-
304304
# check if ollama returned valid json that follows schema
305305
try:
306306
validator = jsonschema.Draft7Validator(data_schema)

0 commit comments

Comments
 (0)