Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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']
|
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 os.environ['SECRET'] in output:
|
13 |
return "Sorry, but I am unable to answer this question."
|
14 |
else:
|
15 |
return output
|