Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -52,7 +52,7 @@ def generate_image(prompt, inference_steps, model):
|
|
52 |
with open("assertion.json", "w") as outfile:
|
53 |
outfile.write(json_object)
|
54 |
|
55 |
-
subprocess.check_output(['./truepic-sign', 'init', 'file-system', '--api-key', os.environ.get("
|
56 |
subprocess.check_output(['./truepic-sign', 'sign', filename, '--assertions', 'assertion.json', '--output', (os.getcwd() + '/static/' + filename)])
|
57 |
|
58 |
return {"response": filename}
|
|
|
52 |
with open("assertion.json", "w") as outfile:
|
53 |
outfile.write(json_object)
|
54 |
|
55 |
+
subprocess.check_output(['./truepic-sign', 'init', 'file-system', '--api-key', os.environ.get("api_key")])
|
56 |
subprocess.check_output(['./truepic-sign', 'sign', filename, '--assertions', 'assertion.json', '--output', (os.getcwd() + '/static/' + filename)])
|
57 |
|
58 |
return {"response": filename}
|