Jiqing commited on
Commit
522a806
1 Parent(s): ee55c3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ is_shared_ui = False
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}"
23
 
 
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={"diffusion_model_id": model_id, "concept": concept, "attacker": attacker})
21
 
22
  return f"The attack prompt is: {result}"
23