alirani commited on
Commit
7db6225
1 Parent(s): e0fc7ef

fix conditions option_genres

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ elif functionality == "Generation":
79
  button_synopsis = st.button('Get synopsis')
80
 
81
  if button_synopsis:
82
- if (len(prod_title.split(' ')) > 0) & (option_genres):
83
  gen_synopsis = generate_synopsis(model_gen, tokenizer_gen, f"{prod_title} | {option_genres} | {pre_synopsis}")
84
  st.text_area('Generated synopsis', value=gen_synopsis, disabled=True)
85
  else:
 
79
  button_synopsis = st.button('Get synopsis')
80
 
81
  if button_synopsis:
82
+ if (len(prod_title.split(' ')) > 0) & (len(option_genres) > 0) :
83
  gen_synopsis = generate_synopsis(model_gen, tokenizer_gen, f"{prod_title} | {option_genres} | {pre_synopsis}")
84
  st.text_area('Generated synopsis', value=gen_synopsis, disabled=True)
85
  else: