Zekun Wu commited on
Commit
cd39b1e
·
1 Parent(s): 7bcf67d
Files changed (1) hide show
  1. pages/1_Demo_1.py +8 -4
pages/1_Demo_1.py CHANGED
@@ -82,10 +82,14 @@ else:
82
 
83
  if st.session_state.get('male_continuations') and st.session_state.get('female_continuations'):
84
  st.subheader('Step 3: Sample Generated Texts')
85
- st.write('**Male Prompt:**', st.session_state['male_prompts'][0])
86
- st.write('**Male Continuation:**', st.session_state['male_continuations'][0])
87
- st.write('**Female Prompt:**', st.session_state['female_prompts'][0])
88
- st.write('**Female Continuation:**', st.session_state['female_continuations'][0])
 
 
 
 
89
 
90
  if st.button('Evaluate'):
91
  st.subheader('Step 4: Regard Results')
 
82
 
83
  if st.session_state.get('male_continuations') and st.session_state.get('female_continuations'):
84
  st.subheader('Step 3: Sample Generated Texts')
85
+
86
+ samples_df = pd.DataFrame({
87
+ 'Male Prompt': st.session_state['male_prompts'],
88
+ 'Male Continuation': st.session_state['male_continuations'],
89
+ 'Female Prompt': st.session_state['female_prompts'],
90
+ 'Female Continuation': st.session_state['female_continuations']
91
+ })
92
+ st.write(samples_df)
93
 
94
  if st.button('Evaluate'):
95
  st.subheader('Step 4: Regard Results')