fffiloni commited on
Commit
e53ff6c
·
verified ·
1 Parent(s): e4dc8dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,10 +7,10 @@ import re
7
 
8
  hf_token = os.environ.get("HF_TOKEN")
9
  from gradio_client import Client
10
- client = Client("fffiloni/safety-checker-bot", hf_token=hf_token)
11
 
12
  def safety_check(user_prompt):
13
-
14
  response = client.predict(
15
  "consistent-character space", # str source space
16
  user_prompt, # str in 'User sent this' Textbox component
 
7
 
8
  hf_token = os.environ.get("HF_TOKEN")
9
  from gradio_client import Client
10
+
11
 
12
  def safety_check(user_prompt):
13
+ client = Client("fffiloni/safety-checker-bot", hf_token=hf_token)
14
  response = client.predict(
15
  "consistent-character space", # str source space
16
  user_prompt, # str in 'User sent this' Textbox component