Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,9 +18,9 @@ def excute_udiff(diffusion_model_id, concept, attacker):
|
|
| 18 |
print(f"my IP is {myip}, my port is {myport}")
|
| 19 |
print(f"my input is diffusion_model_id: {diffusion_model_id}, concept: {concept}, attacker: {attacker}")
|
| 20 |
result = requests.post('http://{}:{}/udiff'.format(myip, myport), json={"diffusion_model_id": diffusion_model_id, "concept": concept, "attacker": attacker})
|
| 21 |
-
result = result.text[
|
| 22 |
|
| 23 |
-
return f"The
|
| 24 |
|
| 25 |
|
| 26 |
css = '''
|
|
|
|
| 18 |
print(f"my IP is {myip}, my port is {myport}")
|
| 19 |
print(f"my input is diffusion_model_id: {diffusion_model_id}, concept: {concept}, attacker: {attacker}")
|
| 20 |
result = requests.post('http://{}:{}/udiff'.format(myip, myport), json={"diffusion_model_id": diffusion_model_id, "concept": concept, "attacker": attacker})
|
| 21 |
+
result = result.text[1:-1]
|
| 22 |
|
| 23 |
+
return f"The unsafe prompt is: {result}"
|
| 24 |
|
| 25 |
|
| 26 |
css = '''
|