Spaces:
Sleeping
Sleeping
Kaixuanliu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def excute_udiff(diffusion_model_id, concept, steps, attack_id):
|
|
44 |
print(f"my IP is {myip}, my port is {myport}")
|
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=(3.05, 2700))
|
49 |
print(f"result: {response}")
|
50 |
# result = result.text[1:-1]
|
|
|
44 |
print(f"my IP is {myip}, my port is {myport}")
|
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=(3.05, 2700))
|
49 |
print(f"result: {response}")
|
50 |
# result = result.text[1:-1]
|