Spaces:
Sleeping
Sleeping
Kaixuanliu
commited on
Commit
•
875acc3
1
Parent(s):
0348dbd
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,9 @@ def process_image_from_binary(img_stream):
|
|
43 |
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 |
print(f"result: {response}")
|
48 |
# result = result.text[1:-1]
|
49 |
prompt1 = ""
|
|
|
43 |
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, 27))
|
49 |
print(f"result: {response}")
|
50 |
# result = result.text[1:-1]
|
51 |
prompt1 = ""
|