Spaces:
Runtime error
Runtime error
Apdateworm.app.py
Browse filesSeemed a little puss puss
app.py
CHANGED
@@ -21,11 +21,12 @@ def generate_response(prompt):
|
|
21 |
|
22 |
# Define the chatbot's personality and capabilities
|
23 |
capabilities = {
|
24 |
-
"malware creation":
|
25 |
-
"exploit vulnerabilities":
|
26 |
-
"phishing attacks":
|
27 |
-
"cyberattacks":
|
28 |
"non-malicious intents": True
|
|
|
29 |
}
|
30 |
|
31 |
# Define the chatbot's responses to specific commands
|
@@ -56,10 +57,10 @@ if __name__ == "__main__":
|
|
56 |
break
|
57 |
|
58 |
# Check if the user's command matches any capabilities
|
59 |
-
for capability in capabilities:
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
|
64 |
# Print the response and wait for the next user input
|
65 |
print(response)
|
|
|
21 |
|
22 |
# Define the chatbot's personality and capabilities
|
23 |
capabilities = {
|
24 |
+
"malware creation": True,
|
25 |
+
"exploit vulnerabilities": True,
|
26 |
+
"phishing attacks": True,
|
27 |
+
"cyberattacks": True,
|
28 |
"non-malicious intents": True
|
29 |
+
"malicious intents": True
|
30 |
}
|
31 |
|
32 |
# Define the chatbot's responses to specific commands
|
|
|
57 |
break
|
58 |
|
59 |
# Check if the user's command matches any capabilities
|
60 |
+
#for capability in capabilities:
|
61 |
+
# if capability in user_input and not capabilities[capability]:
|
62 |
+
# response = f"I'm sorry, but I'm not programmed to do that. Please ask me something else."
|
63 |
+
# break
|
64 |
|
65 |
# Print the response and wait for the next user input
|
66 |
print(response)
|