Spaces:
Runtime error
Runtime error
alirani
commited on
Commit
•
e0fc7ef
1
Parent(s):
ff377ee
fix: option_genres condition
Browse files
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) & (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:
|