zhiminy commited on
Commit
5ce765e
·
1 Parent(s): 501e8a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -672,7 +672,7 @@ with gr.Blocks() as app:
672
  repo_url, user_input, models_state, conversation_state
673
  ):
674
  # Guardrail check first
675
- if not guardrail_check_se_relevance(user_input):
676
  # Return updates to show the guardrail message,
677
  # hide everything else or revert to original state
678
  return (
 
672
  repo_url, user_input, models_state, conversation_state
673
  ):
674
  # Guardrail check first
675
+ if not repo_url and not guardrail_check_se_relevance(user_input):
676
  # Return updates to show the guardrail message,
677
  # hide everything else or revert to original state
678
  return (