Vanessasml
commited on
Commit
•
f485b4c
1
Parent(s):
2fc6120
Update README.md
Browse files
README.md
CHANGED
@@ -62,13 +62,13 @@ pipeline = transformers.pipeline(
|
|
62 |
device="cuda",
|
63 |
)
|
64 |
## Define your user prompt
|
65 |
-
example_prompt_1=""" Question: What are the cyber threats present in the article?Explain why.\n
|
66 |
Article: More than one million Brits over the age of 45 have fallen victim to some form of email-related fraud, \
|
67 |
as the internet supersedes the telephone as the favored channel for scammers, according to Aviva. \
|
68 |
The insurer polled over 1000 adults over the age of 45 in the latest update to its long-running Real Retirement Report. \
|
69 |
Further, 6% said they had actually fallen victim to such an online attack, amounting to around 1.2 million adults.
|
70 |
"""
|
71 |
-
example_prompt_2 = "What are the main 5 ITC EBA IT risks?
|
72 |
|
73 |
messages = [
|
74 |
{"role": "system", "content": "You are an IT supervisor from a supervisory institution."},
|
@@ -95,7 +95,9 @@ outputs = pipeline(
|
|
95 |
top_p=0.9,
|
96 |
)
|
97 |
print(outputs[0]["generated_text"][len(prompt):])
|
|
|
98 |
|
|
|
99 |
## Example output
|
100 |
As an IT supervisor from a supervisory institution, I can provide you with the main 5 ITC EBA IT risks that we focus on:
|
101 |
|
|
|
62 |
device="cuda",
|
63 |
)
|
64 |
## Define your user prompt
|
65 |
+
example_prompt_1=""" Question: What are the cyber threats present in the article? Explain why.\n
|
66 |
Article: More than one million Brits over the age of 45 have fallen victim to some form of email-related fraud, \
|
67 |
as the internet supersedes the telephone as the favored channel for scammers, according to Aviva. \
|
68 |
The insurer polled over 1000 adults over the age of 45 in the latest update to its long-running Real Retirement Report. \
|
69 |
Further, 6% said they had actually fallen victim to such an online attack, amounting to around 1.2 million adults.
|
70 |
"""
|
71 |
+
example_prompt_2 = "What are the main 5 ITC EBA IT risks?"
|
72 |
|
73 |
messages = [
|
74 |
{"role": "system", "content": "You are an IT supervisor from a supervisory institution."},
|
|
|
95 |
top_p=0.9,
|
96 |
)
|
97 |
print(outputs[0]["generated_text"][len(prompt):])
|
98 |
+
```
|
99 |
|
100 |
+
```python
|
101 |
## Example output
|
102 |
As an IT supervisor from a supervisory institution, I can provide you with the main 5 ITC EBA IT risks that we focus on:
|
103 |
|