Skip to content

Conversation

MagdalenaKotynia
Copy link
Member

@MagdalenaKotynia MagdalenaKotynia commented Jun 23, 2025

Purpose

Proposed Changes

  • Fixed Issue RAI configuration tool throws a KeyError excetpion during Test Configuration #633 by setting up the ["s2s"] feature to True if rai_s2s is imported with success.
  • Added capital letters to TTS vendors' names according to the names available through the configurator.
  • Fixed variable name from non-existing device_index to index.
  • Fixed logging warnings related to s2s imports. Before the change, it was logged that s2s is not installed, even when it was installed, but e.g., ros2 was not sourced.

Issues

Testing

@MagdalenaKotynia MagdalenaKotynia marked this pull request as ready for review June 23, 2025 15:51
@MagdalenaKotynia MagdalenaKotynia force-pushed the fix/configurator-bugs-fixes branch from a15eb05 to 5d207dd Compare July 16, 2025 15:47
Copy link
Collaborator

@Juliaj Juliaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment. The rest of the changes look good, thanks for fixing these.

@@ -975,29 +976,30 @@ def setup_steps():
step_names = ["👋 Welcome", "🤖 Model Selection", "📊 Tracing"]
step_render = [welcome, model_selection, tracing]

st.session_state.features["s2s"] = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add else to if block below and move this line there ?

Copy link
Member Author

@MagdalenaKotynia MagdalenaKotynia Jul 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the comment. If - else statement does not change behavior of this functionality (in case s2s is not installed, s2s key would be set to False in the first try-except block), but the change suggested by you makes code more readable. I applied your suggestion and additionaly moved try-except statements to else block - to avoid triple warnings in case s2s is not installed. 367e3b3

…ancy - previously, if s2s is not installed, the warning would occur 3 times
Copy link
Collaborator

@Juliaj Juliaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@maciejmajek maciejmajek merged commit 062c120 into main Jul 21, 2025
10 of 11 checks passed
@maciejmajek maciejmajek deleted the fix/configurator-bugs-fixes branch July 21, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RAI configuration tool throws a KeyError excetpion during Test Configuration
3 participants