Skip to content

Commit

Permalink
✨ feat(controller): add option to hide long text in tagger response
Browse files Browse the repository at this point in the history
Added `hidden_long_text` parameter to `tagger` method to control
the display of long text responses. Updated relevant method calls
to include the new parameter.
  • Loading branch information
sudoskys committed Sep 28, 2024
1 parent 8a4a963 commit 5e20359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ async def read_a111(file: BytesIO):
parameter = img.info.get("parameters", None)
if not parameter:
raise Exception("Empty Parameter")
if isinstance(parameter, str):
parameter = parameter.replace("\n\n", "\n")
except Exception as e:
logger.debug(f"Error {e}")
return []
Expand Down

0 comments on commit 5e20359

Please sign in to comment.