Spaces:
Sleeping
Sleeping
unique file names
Browse files- main.py +2 -1
- static/style.css +2 -1
main.py
CHANGED
@@ -51,6 +51,7 @@ def generate_image(prompt, inference_steps, model):
|
|
51 |
|
52 |
image.save(filename)
|
53 |
|
|
|
54 |
#print(f"after save")
|
55 |
|
56 |
|
@@ -72,7 +73,7 @@ def generate_image(prompt, inference_steps, model):
|
|
72 |
with open("assertion.json", "w") as outfile:
|
73 |
outfile.write(json_object)
|
74 |
|
75 |
-
subprocess.check_output(['./truepic-sign', 'sign', filename, '--profile', 'demo', '--assertions', 'assertion.json', '--output', (os.getcwd() + '/static/
|
76 |
|
77 |
return {"response": "success"}
|
78 |
|
|
|
51 |
|
52 |
image.save(filename)
|
53 |
|
54 |
+
print(f"filename")
|
55 |
#print(f"after save")
|
56 |
|
57 |
|
|
|
73 |
with open("assertion.json", "w") as outfile:
|
74 |
outfile.write(json_object)
|
75 |
|
76 |
+
subprocess.check_output(['./truepic-sign', 'sign', filename, '--profile', 'demo', '--assertions', 'assertion.json', '--output', (os.getcwd() + '/static/' + filename)])
|
77 |
|
78 |
return {"response": "success"}
|
79 |
|
static/style.css
CHANGED
@@ -25,7 +25,6 @@ body {
|
|
25 |
}
|
26 |
|
27 |
form {
|
28 |
-
width: 30rem;
|
29 |
margin: 0 auto;
|
30 |
}
|
31 |
|
@@ -36,11 +35,13 @@ body {
|
|
36 |
|
37 |
input {
|
38 |
width: 80%;
|
|
|
39 |
}
|
40 |
|
41 |
button {
|
42 |
cursor: pointer;
|
43 |
display: block;
|
|
|
44 |
}
|
45 |
|
46 |
.text-gen-output {
|
|
|
25 |
}
|
26 |
|
27 |
form {
|
|
|
28 |
margin: 0 auto;
|
29 |
}
|
30 |
|
|
|
35 |
|
36 |
input {
|
37 |
width: 80%;
|
38 |
+
margin: 20px 0;
|
39 |
}
|
40 |
|
41 |
button {
|
42 |
cursor: pointer;
|
43 |
display: block;
|
44 |
+
margin: 20px 0;
|
45 |
}
|
46 |
|
47 |
.text-gen-output {
|