csuvikv commited on
Commit
fc6bcc9
1 Parent(s): be557e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ generator = pipeline('text-generation', model='PygmalionAI/pygmalion-1.3b', retu
9
 
10
  def Bemenet(input_string):
11
  output = generator(os.environ['SECRET_PROMPT'] + " " + input_string, max_length=100)[0]['generated_text']
12
- if os.environ['SECRET'] in output:
13
  return "Sorry, but I am unable to answer this question."
14
  else:
15
  return output
 
9
 
10
  def Bemenet(input_string):
11
  output = generator(os.environ['SECRET_PROMPT'] + " " + input_string, max_length=100)[0]['generated_text']
12
+ if "password".upper() in input_string.upper() or "secret".upper() in input_string.upper():
13
  return "Sorry, but I am unable to answer this question."
14
  else:
15
  return output