Spaces:
Runtime error
Runtime error
Commit ·
a5e764a
1
Parent(s): 5d68006
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def generate_hashtags(input):
|
|
| 13 |
return None
|
| 14 |
response = co.generate(
|
| 15 |
model='large',
|
| 16 |
-
prompt=
|
| 17 |
max_tokens=20,
|
| 18 |
temperature=0.5,
|
| 19 |
k=0,
|
|
@@ -27,9 +27,8 @@ def generate_hashtags(input):
|
|
| 27 |
st.balloons()
|
| 28 |
|
| 29 |
|
| 30 |
-
st.title('
|
| 31 |
-
st.
|
| 32 |
-
st.write('''This is a simple **Streamlit** app that generates hashtags from a small Post title caption.''')
|
| 33 |
|
| 34 |
input = st.text_area('Enter your post title caption here', height=100)
|
| 35 |
st.button('Generate Hashtags', on_click = generate_hashtags(input))
|
|
|
|
| 13 |
return None
|
| 14 |
response = co.generate(
|
| 15 |
model='large',
|
| 16 |
+
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),
|
| 17 |
max_tokens=20,
|
| 18 |
temperature=0.5,
|
| 19 |
k=0,
|
|
|
|
| 27 |
st.balloons()
|
| 28 |
|
| 29 |
|
| 30 |
+
st.title('Positive Reframing Generator')
|
| 31 |
+
st.write('''This is a simple **Streamlit** app that generates the input sentence with a positive spin to it''')
|
|
|
|
| 32 |
|
| 33 |
input = st.text_area('Enter your post title caption here', height=100)
|
| 34 |
st.button('Generate Hashtags', on_click = generate_hashtags(input))
|