Spaces:
Sleeping
Sleeping
Update app.py
Browse files- Fix docstring errors
app.py
CHANGED
@@ -23,16 +23,16 @@ def infer_chain(address):
|
|
23 |
else:
|
24 |
return "Unknown"
|
25 |
|
26 |
-
# Define the tool with a
|
27 |
@tool
|
28 |
def check_flagged_address(address: str) -> str:
|
29 |
-
"""
|
30 |
-
|
31 |
Args:
|
32 |
-
address
|
33 |
-
|
34 |
Returns:
|
35 |
-
|
36 |
"""
|
37 |
chain = infer_chain(address)
|
38 |
for entry in flagged_addresses:
|
|
|
23 |
else:
|
24 |
return "Unknown"
|
25 |
|
26 |
+
# Define the tool with a strictly formatted docstring
|
27 |
@tool
|
28 |
def check_flagged_address(address: str) -> str:
|
29 |
+
"""Check if a cryptocurrency address is flagged in the Bybit hack database.
|
30 |
+
|
31 |
Args:
|
32 |
+
address: String representing the cryptocurrency address to check.
|
33 |
+
|
34 |
Returns:
|
35 |
+
String indicating if the address is flagged and its blockchain.
|
36 |
"""
|
37 |
chain = infer_chain(address)
|
38 |
for entry in flagged_addresses:
|