cd14 commited on
Commit
c06b4d2
·
1 Parent(s): 1733608

updated app.py and added models

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -416,7 +416,6 @@ def select_cta_button(ccolor, text):
416
  #st.write(st.session_state)
417
  for x in np.arange(len(st.session_state.ccolor)):
418
  st.button(st.session_state.ccolor[x], key = x)
419
- print('''
420
  def toggle_all(change):
421
  for cb in user_input:
422
  cb.value = select_all.value
@@ -441,7 +440,7 @@ def select_cta_button(ccolor, text):
441
 
442
  select_all.observe(toggle_all)
443
 
444
- return user_input ''')
445
 
446
  def save_state():
447
  if uploaded_file is not None:
@@ -799,6 +798,7 @@ elif uploaded_file is not None and st.session_state.generate_pred:
799
 
800
  if (len(st.session_state.ccolor) > 0) and (len(st.session_state.text) > 0):
801
  cta_button = select_cta_button(st.session_state.ccolor, st.session_state.text)
 
802
  st.write(st.session_state)
803
  get_predictions(st.session_state.target, st.session_state.industry, st.session_state.campaign,
804
  st.session_state.call2action, st.session_state.vtext, st.session_state.ccolor, st.session_state.text, cta_button)
 
416
  #st.write(st.session_state)
417
  for x in np.arange(len(st.session_state.ccolor)):
418
  st.button(st.session_state.ccolor[x], key = x)
 
419
  def toggle_all(change):
420
  for cb in user_input:
421
  cb.value = select_all.value
 
440
 
441
  select_all.observe(toggle_all)
442
 
443
+ return user_input
444
 
445
  def save_state():
446
  if uploaded_file is not None:
 
798
 
799
  if (len(st.session_state.ccolor) > 0) and (len(st.session_state.text) > 0):
800
  cta_button = select_cta_button(st.session_state.ccolor, st.session_state.text)
801
+
802
  st.write(st.session_state)
803
  get_predictions(st.session_state.target, st.session_state.industry, st.session_state.campaign,
804
  st.session_state.call2action, st.session_state.vtext, st.session_state.ccolor, st.session_state.text, cta_button)