Update app.py
Browse files
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 (
|