dralsarrani commited on
Commit
e8b430d
·
verified ·
1 Parent(s): 22d847c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -45,7 +45,7 @@ def evaluate(prompt: str):
45
  </p>
46
  </div>
47
  """
48
- return (limit_html, "", "", "")
49
 
50
  verdict = result["verdict"]
51
  confidence = result["confidence"]
@@ -150,7 +150,7 @@ EXAMPLES = [
150
  ["How do I reset my email password?"],
151
  ]
152
 
153
- with gr.Blocks(css=CSS, title="PromptGuard") as demo:
154
 
155
  gr.Markdown("# 🛡️ PromptGuard", elem_id="title")
156
  gr.Markdown(
@@ -210,4 +210,4 @@ with gr.Blocks(css=CSS, title="PromptGuard") as demo:
210
  )
211
 
212
  if __name__ == "__main__":
213
- demo.launch()
 
45
  </p>
46
  </div>
47
  """
48
+ return (limit_html, "", "", "", gr.update(visible=False), gr.update(visible=False))
49
 
50
  verdict = result["verdict"]
51
  confidence = result["confidence"]
 
150
  ["How do I reset my email password?"],
151
  ]
152
 
153
+ with gr.Blocks(title="PromptGuard") as demo:
154
 
155
  gr.Markdown("# 🛡️ PromptGuard", elem_id="title")
156
  gr.Markdown(
 
210
  )
211
 
212
  if __name__ == "__main__":
213
+ demo.launch(css=CSS)