Handle the starring process when a name is input. Args: log_index: Index of the output to star name: Name to give the starred output
(log_index: int, name: str)
| 1122 | |
| 1123 | |
| 1124 | def handle_star_name_input(log_index: int, name: str): |
| 1125 | """Handle the starring process when a name is input. |
| 1126 | |
| 1127 | Args: |
| 1128 | log_index: Index of the output to star |
| 1129 | name: Name to give the starred output |
| 1130 | """ |
| 1131 | try: |
| 1132 | if star_output(log_index, name): |
| 1133 | st.success("Output starred successfully!") |
| 1134 | else: |
| 1135 | st.error("Failed to star output. Please try again.") |
| 1136 | except Exception as e: |
| 1137 | logger.error(f"Error handling star name input: {str(e)}") |
| 1138 | st.error(f"Error starring output: {str(e)}") |
| 1139 | |
| 1140 | |
| 1141 | def execute_pattern_chain(patterns_sequence: List[str], initial_input: str) -> Dict: |