Spaces:
Runtime error
Runtime error
fix error messages
Browse files
app.py
CHANGED
|
@@ -7,10 +7,10 @@ bullets = "<ul><li style='color: white;'>β
Connection verified by <a style='co
|
|
| 7 |
token_info = "<p style='color: white;'> Find out more about the MAA attesation token <a style='color: #f0ba2d;', href='https://blindbox.mithrilsecurity.io/en/latest/docs/security/attestation/#maa-attestation-token'>here!</a>"
|
| 8 |
def run_query( server, prompt):
|
| 9 |
if server == "Non-confidential VM server":
|
| 10 |
-
return ("β Error: you can only connect to an application running on a Confidential VM")
|
| 11 |
POLICY = "./cce_policy.txt"
|
| 12 |
if prompt == None:
|
| 13 |
-
return ("β Error: please provide input code")
|
| 14 |
message = "\n\nβ
Secure query succesful"
|
| 15 |
message2 = "β
Attestation validated\n"
|
| 16 |
try:
|
|
|
|
| 7 |
token_info = "<p style='color: white;'> Find out more about the MAA attesation token <a style='color: #f0ba2d;', href='https://blindbox.mithrilsecurity.io/en/latest/docs/security/attestation/#maa-attestation-token'>here!</a>"
|
| 8 |
def run_query( server, prompt):
|
| 9 |
if server == "Non-confidential VM server":
|
| 10 |
+
return (["β Error: you can only connect to an application running on a Confidential VM", "β Error: attesation failed"])
|
| 11 |
POLICY = "./cce_policy.txt"
|
| 12 |
if prompt == None:
|
| 13 |
+
return (["β Error: please provide input code", "β Error: please provide input code"])
|
| 14 |
message = "\n\nβ
Secure query succesful"
|
| 15 |
message2 = "β
Attestation validated\n"
|
| 16 |
try:
|