Spaces:
Running
Running
Update app.py
Browse files
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
|