dk-crazydiv commited on
Commit
d4f2291
·
1 Parent(s): 87b5c2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,6 @@ import os
5
  co = cohere.Client(os.getenv('COHERE_API_KEY'))
6
 
7
  # Initialization
8
- output = ""
9
 
10
  def generate_hashtags(input):
11
  if len(input) == 0:
@@ -29,5 +28,6 @@ st.title('Positive Reframing Generator')
29
  st.write('''This is a simple **Streamlit** app that generates the input sentence with a positive spin to it''')
30
 
31
  input = st.text_area('Enter your post title caption here', height=100)
32
- st.button('Reframe', on_click = generate_hashtags(input))
33
- st.write(output)
 
 
5
  co = cohere.Client(os.getenv('COHERE_API_KEY'))
6
 
7
  # Initialization
 
8
 
9
  def generate_hashtags(input):
10
  if len(input) == 0:
 
28
  st.write('''This is a simple **Streamlit** app that generates the input sentence with a positive spin to it''')
29
 
30
  input = st.text_area('Enter your post title caption here', height=100)
31
+ if st.button('Reframe'):
32
+ output = generate_hashtags(input))
33
+ st.write(output)