Sofia Santos commited on
Commit
79fafa0
·
1 Parent(s): cf379ec

feat: adds tabs and warning when selecting diff model config after being connected to the model

Browse files
Files changed (1) hide show
  1. tdagent/grchat.py +2 -3
tdagent/grchat.py CHANGED
@@ -770,9 +770,8 @@ with (
770
 
771
  # Initialize a flag to check if connected
772
 
773
- def _on_change_model_configuration() -> (
774
- Any
775
- ): # If model configuration changes after connecting, issue a warning
776
  if CONNECT_STATE_DEFAULT.value:
777
  CONNECT_STATE_DEFAULT.value = False # Reset the state
778
  return gr.Warning(
 
770
 
771
  # Initialize a flag to check if connected
772
 
773
+ def _on_change_model_configuration(*args: str) -> Any: # noqa: ARG001
774
+ # If model configuration changes after connecting, issue a warning
 
775
  if CONNECT_STATE_DEFAULT.value:
776
  CONNECT_STATE_DEFAULT.value = False # Reset the state
777
  return gr.Warning(