Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,10 @@ from Gradio_UI import GradioUI
|
|
| 11 |
# CTI tools
|
| 12 |
@tool
|
| 13 |
def threat_lookup(threat_name: str) -> str:
|
| 14 |
-
"""Fetches basic information about a known cyber threat.
|
|
|
|
|
|
|
|
|
|
| 15 |
try:
|
| 16 |
url = f"https://cve.circl.lu/api/cve/{threat_name}"
|
| 17 |
response = requests.get(url, timeout=5) # Added timeout
|
|
|
|
| 11 |
# CTI tools
|
| 12 |
@tool
|
| 13 |
def threat_lookup(threat_name: str) -> str:
|
| 14 |
+
"""Fetches basic information about a known cyber threat.
|
| 15 |
+
Args:
|
| 16 |
+
threat_name: The name of the threat to search.
|
| 17 |
+
"""
|
| 18 |
try:
|
| 19 |
url = f"https://cve.circl.lu/api/cve/{threat_name}"
|
| 20 |
response = requests.get(url, timeout=5) # Added timeout
|