TODAM-tw / todam-ticket-system

The frontend with gradio and combined with the API endpoints for the ticket system.
Apache License 2.0
0 stars 0 forks source link

[Bug] Removing an Unnecessary Variable `str` to Avoid Errors #22

Closed 1chooo closed 1 month ago

1chooo commented 1 month ago
UserWarning: Expected 2 arguments for function <function get_segments at 0x10aff3100>, received 1.
  warnings.warn(
/Users/hugolin/Developer/todam-ticket-system/venv/lib/python3.11/site-packages/gradio/utils.py:981: UserWarning: Expected at least 2 arguments for function <function get_segments at 0x10aff3100>, received 1.

https://github.com/TODAM-tw/todam-ticket-system/blob/0dd086e7c3b83e485e44a060eed4a6d33557e8d7/app/cases/segment.py#L9-L10

We have accidentally added an unnecessary variable named str. Additionally, str is a predefined variable name. We need to remove it to prevent potential errors.