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