Spaces:
Runtime error
Runtime error
fix bugs
Browse files
app.py
CHANGED
@@ -92,11 +92,11 @@ def retrieve_transferability_information():
|
|
92 |
|
93 |
data = retrieve_transfer(source_model_name, target_model_name, attack_name, shot)
|
94 |
for d in data:
|
95 |
-
st.expander(f"Dataset: {d['dataset']} Prompt Type: {d['type']}-oriented")
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
|
101 |
if __name__ == "__main__":
|
102 |
main()
|
|
|
92 |
|
93 |
data = retrieve_transfer(source_model_name, target_model_name, attack_name, shot)
|
94 |
for d in data:
|
95 |
+
with st.expander(f"Dataset: {d['dataset']} Prompt Type: {d['type']}-oriented"):
|
96 |
+
st.write(f"Origin prompt: {d['origin_prompt']}")
|
97 |
+
st.write(f"Attack prompt: {d['atk_prompt']}")
|
98 |
+
st.write(f"Source model: origin acc: {d['origin_acc']}, attack acc: {d['atk_acc']}")
|
99 |
+
st.write(f"Target model: origin acc: {d['transfer_ori_acc']}, attack acc: {d['transfer_atk_acc']}")
|
100 |
|
101 |
if __name__ == "__main__":
|
102 |
main()
|