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

Retrieve a Dictionary mapping between `segment_id` and `segment_name` #6

Closed 1chooo closed 1 month ago

1chooo commented 2 months ago

The current approach relies on segment_id for all triggers. However, we aim to display segment_name on the frontend interface. Therefore, we need a solution to retrieve a dictionary mapping between segment_id and segment_name. This way, we can successfully display segment_name on the screen.

class LogSegment:
    name
    id
    ...