smellslikeml commited on
Commit
5fbad87
1 Parent(s): 2eb3577

initial commit

Browse files
Files changed (1) hide show
  1. 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, firewall_manager: FirewallManager, packet_filter: PacketFilter):
27
  self.openai_api_key = env.get("OPENAI_API_KEY")
28
  openai.api_key = self.openai_api_key
29
- self.firewall_manager = firewall_manager
30
- self.packet_filter = 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