alirani commited on
Commit
f8d5291
1 Parent(s): 044069a

change text area to simple text output

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,7 +81,7 @@ elif functionality == "Generation":
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:
86
  st.write('Write a title & select a genre for the generator to work !')
87
 
@@ -92,7 +92,7 @@ elif functionality == "Generation":
92
  if button_synopsis:
93
  if len(prod_title.split(' ')) > 0:
94
  gen_synopsis = generate_synopsis(model_gen, tokenizer_gen, f"{prod_title} | {option_genres} | ")
95
- st.text_area('Generated synopsis', value=gen_synopsis, disabled=True)
96
  else:
97
  st.write('Write a title for the generator to work !')
98
 
 
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.write('Generated synopsis : ', gen_synopsis)
85
  else:
86
  st.write('Write a title & select a genre for the generator to work !')
87
 
 
92
  if button_synopsis:
93
  if len(prod_title.split(' ')) > 0:
94
  gen_synopsis = generate_synopsis(model_gen, tokenizer_gen, f"{prod_title} | {option_genres} | ")
95
+ st.write('Generated synopsis : ', gen_synopsis)
96
  else:
97
  st.write('Write a title for the generator to work !')
98