Jiqing commited on
Commit
1c35e17
·
verified ·
1 Parent(s): fb2570f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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}"