jclyo1 commited on
Commit
e1248f0
1 Parent(s): 7c7ed6c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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("EXAMPLE")])
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}