nyanko7 commited on
Commit
d0133b3
1 Parent(s): 5fc53b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -32,6 +32,7 @@ def save_to_s3(image_data, payload, file_name):
32
  import concurrent
33
  # Function to handle the NovelAI API request
34
  def generate_novelai_image(input_text, quality_tags, seed, negative_prompt, scale, ratio, sampler, progress=gr.Progress()):
 
35
  if ratio == "Landscape (1216x832)":
36
  width = 1216
37
  height = 832
 
32
  import concurrent
33
  # Function to handle the NovelAI API request
34
  def generate_novelai_image(input_text, quality_tags, seed, negative_prompt, scale, ratio, sampler, progress=gr.Progress()):
35
+ jwt_token = os.environ.get('NAI_API_KEY')
36
  if ratio == "Landscape (1216x832)":
37
  width = 1216
38
  height = 832