Spaces:
Runtime error
Runtime error
Commit
·
89e5b84
1
Parent(s):
2b0641b
negative prompt changes
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def generate_hashtags(input):
|
|
13 |
if category == "positive_affirmation":
|
14 |
input_prompt = "This program will take a sentence as input and reframe it with positive and growth mindset.\n--\nInput: I have a lot of work to do today.\nOutput: I have a lot of work to do today. It's better for me to make a list and break it down into smaller chunks and finish them off one by one.\n--\nInput: I am barely able to lift 10 pound weights.\nOutput: I should exercise more consistently and gradually increase my weight limit. I should also try eating healthy foods.\n--\nInput: {}\nOutput:".format(input.strip())
|
15 |
if category == "remove_negations":
|
16 |
-
input_prompt = "This program
|
17 |
response = co.generate(
|
18 |
model='xlarge',
|
19 |
prompt=input_prompt,
|
|
|
13 |
if category == "positive_affirmation":
|
14 |
input_prompt = "This program will take a sentence as input and reframe it with positive and growth mindset.\n--\nInput: I have a lot of work to do today.\nOutput: I have a lot of work to do today. It's better for me to make a list and break it down into smaller chunks and finish them off one by one.\n--\nInput: I am barely able to lift 10 pound weights.\nOutput: I should exercise more consistently and gradually increase my weight limit. I should also try eating healthy foods.\n--\nInput: {}\nOutput:".format(input.strip())
|
15 |
if category == "remove_negations":
|
16 |
+
input_prompt = "This program takes an input and reframes it by removing negative words and rephrasing with with positivity while preserving the meaning of the original sentence. The word 'no' doesn't appear in the output\n--\nInput: I wouldn’t say I don’t want to go.\nOutput: I would like to go.\n--\nInput: That’s not a bad idea.\nOutput: That is a good idea.\n--\nInput: {}\nOutput:".format(input.strip())
|
17 |
response = co.generate(
|
18 |
model='xlarge',
|
19 |
prompt=input_prompt,
|