Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -51,21 +51,12 @@ def generate_image(prompt, model):
|
|
51 |
|
52 |
json_object = json.dumps(assertion)
|
53 |
|
54 |
-
#subprocess.check_output(
|
55 |
-
# [
|
56 |
-
# "./truepic-sign",
|
57 |
-
# "init",
|
58 |
-
# "file-system",
|
59 |
-
# "--api-key",
|
60 |
-
# os.environ.get("api_key"),
|
61 |
-
# ]
|
62 |
-
#)
|
63 |
subprocess.check_output(
|
64 |
[
|
65 |
-
"./truepic
|
66 |
"sign",
|
67 |
filename,
|
68 |
-
"--assertions",
|
69 |
json_object,
|
70 |
"--output",
|
71 |
(os.getcwd() + "/static/" + filename),
|
|
|
51 |
|
52 |
json_object = json.dumps(assertion)
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
subprocess.check_output(
|
55 |
[
|
56 |
+
"./truepic",
|
57 |
"sign",
|
58 |
filename,
|
59 |
+
"--assertions-inline",
|
60 |
json_object,
|
61 |
"--output",
|
62 |
(os.getcwd() + "/static/" + filename),
|