Spaces:
Runtime error
Runtime error
smellslikeml
commited on
Commit
•
5fbad87
1
Parent(s):
2eb3577
initial commit
Browse files- threat_extraction.py +3 -3
threat_extraction.py
CHANGED
@@ -23,11 +23,11 @@ class ThreatIntelExtractorTool(Tool):
|
|
23 |
inputs = ["text"]
|
24 |
outputs = ["text"]
|
25 |
|
26 |
-
def __init__(self
|
27 |
self.openai_api_key = env.get("OPENAI_API_KEY")
|
28 |
openai.api_key = self.openai_api_key
|
29 |
-
self.firewall_manager =
|
30 |
-
self.packet_filter =
|
31 |
|
32 |
def __call__(self, threat_intel_feed_url: str):
|
33 |
# Scrape threat intelligence feed
|
|
|
23 |
inputs = ["text"]
|
24 |
outputs = ["text"]
|
25 |
|
26 |
+
def __init__(self):
|
27 |
self.openai_api_key = env.get("OPENAI_API_KEY")
|
28 |
openai.api_key = self.openai_api_key
|
29 |
+
self.firewall_manager = FirewallManager
|
30 |
+
self.packet_filter = PacketFilter
|
31 |
|
32 |
def __call__(self, threat_intel_feed_url: str):
|
33 |
# Scrape threat intelligence feed
|