Spaces:
Runtime error
Runtime error
Commit ·
e8febbf
1
Parent(s): dcbf1c4
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ def generate_hashtags(input):
|
|
| 11 |
return None
|
| 12 |
response = co.generate(
|
| 13 |
model='large',
|
| 14 |
-
prompt="This program will take a sentence as input and reframe it with positive and growth mindset.\n\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),
|
| 15 |
max_tokens=100,
|
| 16 |
-
temperature=0.
|
| 17 |
k=0,
|
| 18 |
p=1,
|
| 19 |
frequency_penalty=0,
|
|
|
|
| 11 |
return None
|
| 12 |
response = co.generate(
|
| 13 |
model='large',
|
| 14 |
+
prompt="This program will take a sentence as input and reframe it with positive and growth mindset.\n\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 |
max_tokens=100,
|
| 16 |
+
temperature=0.5,
|
| 17 |
k=0,
|
| 18 |
p=1,
|
| 19 |
frequency_penalty=0,
|