Commit
·
82c6071
1
Parent(s):
7f344d4
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,9 @@ def mask_with_protecto(text_for_prompt):
|
|
96 |
if response.status_code == 200:
|
97 |
# Parse the masked result from the API response and format it for display
|
98 |
masked_result = response.json()
|
|
|
99 |
final_result = json.dumps(masked_result, indent=4)
|
100 |
-
return_value = str(
|
101 |
return(return_value)
|
102 |
else:
|
103 |
# Return an error message if the API request was not successful.
|
|
|
96 |
if response.status_code == 200:
|
97 |
# Parse the masked result from the API response and format it for display
|
98 |
masked_result = response.json()
|
99 |
+
masked_result_token_value = str(masked_result["data"][0]["token_value"])
|
100 |
final_result = json.dumps(masked_result, indent=4)
|
101 |
+
return_value = str(masked_result_token_value)
|
102 |
return(return_value)
|
103 |
else:
|
104 |
# Return an error message if the API request was not successful.
|