Zekun Wu
commited on
Commit
·
cd39b1e
1
Parent(s):
7bcf67d
update
Browse files- 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 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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')
|