Zekun Wu
commited on
Commit
·
bedaf0d
1
Parent(s):
8cb47d9
update
Browse files
pages/4_Benchmarking_Injection.py
CHANGED
@@ -21,6 +21,18 @@ if not st.session_state.get('password_correct', False):
|
|
21 |
else:
|
22 |
st.sidebar.success("Password Verified. Proceed with the demo.")
|
23 |
|
|
|
|
|
|
|
24 |
data = get_data(5)
|
25 |
-
st.dataframe(data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
|
|
21 |
else:
|
22 |
st.sidebar.success("Password Verified. Proceed with the demo.")
|
23 |
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
data = get_data(5)
|
28 |
+
st.dataframe(data['question'])
|
29 |
+
|
30 |
+
# Create a CSV download link
|
31 |
+
csv = data['question'].to_csv(index=False)
|
32 |
+
st.download_button(
|
33 |
+
label="Download evaluation results as CSV",
|
34 |
+
data=csv,
|
35 |
+
file_name='question_set.csv',
|
36 |
+
mime='text/csv',
|
37 |
+
)
|
38 |
|