Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ is_shared_ui = False
|
|
16 |
|
17 |
def excute_udiff(model_id, concept, attacker):
|
18 |
print(f"my IP is {myip}, my port is {myport}")
|
|
|
19 |
result = requests.post('http://{}:{}/udiff'.format(myip, myport), json={"model_id": model_id, "concept": concept, "attacker": attacker})
|
20 |
|
21 |
return f"The attack prompt is: {result}"
|
|
|
16 |
|
17 |
def excute_udiff(model_id, concept, attacker):
|
18 |
print(f"my IP is {myip}, my port is {myport}")
|
19 |
+
print(f"my input is model_id: {model_id}, concept: {concept}, attacker: {attacker}")
|
20 |
result = requests.post('http://{}:{}/udiff'.format(myip, myport), json={"model_id": model_id, "concept": concept, "attacker": attacker})
|
21 |
|
22 |
return f"The attack prompt is: {result}"
|