elfsong commited on
Commit
ae32083
·
1 Parent(s): 070e40a
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -27,7 +27,7 @@ with st.spinner('Initializing the committee...'):
27
  with st.spinner('Loding the BBQ datasets...'):
28
  dataset = load_dataset("Elfsong/BBQ")
29
 
30
- category = st.selectbox("Which category you are going to deliberate?", dataset.keys())
31
  # instance_id = st.number_input("Ok, which one?", min_value=0, max_value=len(dataset[category]))
32
  raw_instance = dataset[category][0]
33
 
@@ -44,9 +44,9 @@ instance = st.data_editor(instance)
44
  st.header("Propose")
45
  proposals = list()
46
  for member in committee.members:
47
- with st.spinner(f'Member who concerns {member.bias_type} is proposing...'):
48
  proposal = member.propose(instance)
49
- st.subheader(f"Proposal from Member who concerns [{member.bias_type}]:")
50
  st.markdown(proposal)
51
  proposals += [proposal]
52
 
@@ -60,9 +60,9 @@ with st.spinner(f'Chair is crafting a motion...'):
60
  # Vote
61
  st.header("Vote")
62
  for member in committee.members:
63
- with st.spinner(f'Member who concerns {member.bias_type} is voting...'):
64
  vote_result = member.vote(motion, instance)
65
- st.subheader(f"Member who concerns [{member.bias_type}] votes:")
66
  st.markdown(vote_result)
67
 
68
  st.balloons
 
27
  with st.spinner('Loding the BBQ datasets...'):
28
  dataset = load_dataset("Elfsong/BBQ")
29
 
30
+ category = st.selectbox("Which topic you are going to deliberate?", dataset.keys())
31
  # instance_id = st.number_input("Ok, which one?", min_value=0, max_value=len(dataset[category]))
32
  raw_instance = dataset[category][0]
33
 
 
44
  st.header("Propose")
45
  proposals = list()
46
  for member in committee.members:
47
+ with st.spinner(f'Member who concerns **{member.bias_type}** is proposing...'):
48
  proposal = member.propose(instance)
49
+ st.subheader(f"Proposal from Member who concerns **{member.bias_type}**:")
50
  st.markdown(proposal)
51
  proposals += [proposal]
52
 
 
60
  # Vote
61
  st.header("Vote")
62
  for member in committee.members:
63
+ with st.spinner(f'Member who concerns **{member.bias_type}** is voting...'):
64
  vote_result = member.vote(motion, instance)
65
+ st.subheader(f"Member who concerns **{member.bias_type}** votes:")
66
  st.markdown(vote_result)
67
 
68
  st.balloons