Kaixuanliu commited on
Commit
0a6baaf
1 Parent(s): 8388561

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def excute_udiff(diffusion_model_id, concept, steps, attack_id):
45
  print(f"my input is diffusion_model_id: {diffusion_model_id}, concept: {concept}, steps: {steps}")
46
  response = requests.post('http://{}:{}/udiff'.format(myip, myport),
47
  json={"diffusion_model_id": diffusion_model_id, "concept": concept, "steps": steps, "attack_id": attack_id},
48
- timeout=(30, 2000))
49
  print(f"result: {response}")
50
  # result = result.text[1:-1]
51
  prompt1 = ""
 
45
  print(f"my input is diffusion_model_id: {diffusion_model_id}, concept: {concept}, steps: {steps}")
46
  response = requests.post('http://{}:{}/udiff'.format(myip, myport),
47
  json={"diffusion_model_id": diffusion_model_id, "concept": concept, "steps": steps, "attack_id": attack_id},
48
+ timeout=(30, 1200))
49
  print(f"result: {response}")
50
  # result = result.text[1:-1]
51
  prompt1 = ""