alirani commited on
Commit
b7137a2
1 Parent(s): bcfdb10

fix button

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,9 +23,9 @@ st.header('Generate a story')
23
 
24
  prod_title = st.text_input('Type a title to generate a synopsis')
25
 
26
- st.button('Get synopsis')
27
 
28
- if st.button('Get synopsis'):
29
  if len(prod_title.split(' ')) > 0:
30
  gen_synopsis = generate_synopsis(model, tokenizer, prod_title)
31
  st.text_area(gen_synopsis, disabled=True)
 
23
 
24
  prod_title = st.text_input('Type a title to generate a synopsis')
25
 
26
+ button_synopsis = st.button('Get synopsis')
27
 
28
+ if button_synopsis:
29
  if len(prod_title.split(' ')) > 0:
30
  gen_synopsis = generate_synopsis(model, tokenizer, prod_title)
31
  st.text_area(gen_synopsis, disabled=True)