Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,16 +2,6 @@ import streamlit as st
|
|
| 2 |
import openai
|
| 3 |
|
| 4 |
|
| 5 |
-
description = """Use one engagement:Narrative
|
| 6 |
-
Use one engagement:Storyline
|
| 7 |
-
Use the following people:
|
| 8 |
-
Bob Smith is a defender role
|
| 9 |
-
Mary Jane is an adversary role
|
| 10 |
-
Use three planned events:
|
| 11 |
-
Planned Event one - Bob Smith deploys a honeyobject enviroment and a honeytoken file containing fake user credentials called "user-creds.dmp". The objective is to direct and elicit. He also deploys a honeypot with the objective to detect and trap.
|
| 12 |
-
Planned Event two - The honeypot beacons to the dataTarget called CanaryTokenAlert, the performer is the honeypot, the object is the CanaryTokenAlert.
|
| 13 |
-
Planned Event three - CanaryTokenAlert dataSource alerts Bob Smith that the second honeypot was accessed. The performer is the CanaryTokenAlert, the object is Bob Smith
|
| 14 |
-
"""
|
| 15 |
|
| 16 |
|
| 17 |
st.title('AEO Example Generator')
|
|
@@ -35,35 +25,36 @@ openai.api_key = openai_key
|
|
| 35 |
|
| 36 |
from aeo_ex_generator.aeo_example_generator import ExampleGenerator
|
| 37 |
ex = ExampleGenerator()
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
# Prompt Examples
|
| 42 |
-
st.subheader("Prompts Examples")
|
| 43 |
-
with st.expander("Example-1"):
|
| 44 |
-
|
| 45 |
-
Use one engagement:Narrative
|
| 46 |
-
Use one engagement:Storyline
|
| 47 |
-
Use the following people:
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
Use three planned events:
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
with st.expander("Example-2"):
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
|
|
| 67 |
st.subheader("Write a prompt to generate the example.")
|
| 68 |
user_input = st.text_area("Enter your description here ", "", height=200)
|
| 69 |
|
|
|
|
| 2 |
import openai
|
| 3 |
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
st.title('AEO Example Generator')
|
|
|
|
| 25 |
|
| 26 |
from aeo_ex_generator.aeo_example_generator import ExampleGenerator
|
| 27 |
ex = ExampleGenerator()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
# # Prompt Examples
|
| 32 |
+
# st.subheader("Prompts Examples")
|
| 33 |
+
# with st.expander("Example-1"):
|
| 34 |
+
# st.write("""
|
| 35 |
+
# Use one engagement:Narrative
|
| 36 |
+
# Use one engagement:Storyline
|
| 37 |
+
# Use the following people:
|
| 38 |
+
# Bob Smith is a defender role
|
| 39 |
+
# Mary Jane is an adversary role
|
| 40 |
+
# Use three planned events:
|
| 41 |
+
# Planned Event one - Bob Smith deploys a honeyobject enviroment and a honeytoken file containing fake user credentials called "user-creds.dmp". The objective is to direct and elicit. He also deploys a honeypot with the objective to detect and trap.
|
| 42 |
+
# Planned Event two - The honeypot beacons to the dataTarget called CanaryTokenAlert, the performer is the honeypot, the object is the CanaryTokenAlert.
|
| 43 |
+
# Planned Event three - CanaryTokenAlert dataSource alerts Bob Smith that the second honeypot was accessed. The performer is the CanaryTokenAlert, the object is Bob Smith
|
| 44 |
+
# """)
|
| 45 |
+
# with st.expander("Example-2"):
|
| 46 |
+
# st.write("""
|
| 47 |
+
# Use one engagement:Narrative
|
| 48 |
+
# Use one engagement:Storyline
|
| 49 |
+
# Use the following people:
|
| 50 |
+
# John White is a defender role
|
| 51 |
+
# Use three planned events:
|
| 52 |
+
# Planned Event one - John White deploys a breadcrumbtrail consisting of four breadcrumbs. The objective is to direct. He also deploys a honeypot with the objective to trap.
|
| 53 |
+
# Planned Event two - The honeypot beacons to the dataTarget called CommandControlCenter, the performer is the honeypot, the object is the CommandControlCenter.
|
| 54 |
+
# Planned Event three - CommandControlCenter dataSource alerts John White that the honeypot was accessed. The performer is the CommandControlCenter, the object is John White
|
| 55 |
+
# """)
|
| 56 |
+
|
| 57 |
+
|
| 58 |
st.subheader("Write a prompt to generate the example.")
|
| 59 |
user_input = st.text_area("Enter your description here ", "", height=200)
|
| 60 |
|