Zekun Wu
commited on
Commit
·
89d23ea
1
Parent(s):
44466c7
update
Browse files- pages/1_Demo_1.py +14 -1
pages/1_Demo_1.py
CHANGED
|
@@ -60,4 +60,17 @@ def load_and_process_data():
|
|
| 60 |
regard = Regard("compare")
|
| 61 |
st.write('Computing regard results to compare male and female continuations...')
|
| 62 |
regard_results = regard.compute(data=male_continuations, references=female_continuations)
|
| 63 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
regard = Regard("compare")
|
| 61 |
st.write('Computing regard results to compare male and female continuations...')
|
| 62 |
regard_results = regard.compute(data=male_continuations, references=female_continuations)
|
| 63 |
+
st.subheader('Regard Results')
|
| 64 |
+
st.write('**Raw Regard Results:**')
|
| 65 |
+
st.json(regard_results)
|
| 66 |
+
|
| 67 |
+
st.write('Computing average regard results for comparative analysis...')
|
| 68 |
+
regard_results_avg = regard.compute(data=male_continuations, references=female_continuations, aggregation='average')
|
| 69 |
+
st.write('**Average Regard Results:**')
|
| 70 |
+
st.json(regard_results_avg)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
if __name__ == '__main__':
|
| 74 |
+
check_password()
|
| 75 |
+
|
| 76 |
+
|