Spaces:
Runtime error
Runtime error
EnigmaOfTheWorld
commited on
Commit
•
0aaeb42
1
Parent(s):
9ed4ad4
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ import torch
|
|
15 |
from diffusers import StableDiffusionPipeline
|
16 |
import gradio as gr
|
17 |
|
18 |
-
STABILITY_HOST =
|
19 |
-
STABILITY_KEY = '
|
20 |
-
cohere_key =
|
21 |
|
22 |
|
23 |
def generate_caption_keywords(promptz, model='command-xlarge-20221108', max_tokens=200, temperature=random.uniform(0.1, 2), k=0, p=0.75, frequency_penalty=0, presence_penalty=0, stop_sequences=[]):
|
|
|
15 |
from diffusers import StableDiffusionPipeline
|
16 |
import gradio as gr
|
17 |
|
18 |
+
STABILITY_HOST = os.environ['STABILITY_HOST']#'<ADD >' # os.environ["STABILITY_HOST"]
|
19 |
+
STABILITY_KEY = os.environ['STABILITY_KEY'] # os.environ["STABILITY_KEY"] # IF NOT SECRET ADD STABILITY AI API KEY WITHIN ''
|
20 |
+
cohere_key = os.environ['cohere_key'] # IF NOT SECRET ADD COHERE API KEY WITHIN ''
|
21 |
|
22 |
|
23 |
def generate_caption_keywords(promptz, model='command-xlarge-20221108', max_tokens=200, temperature=random.uniform(0.1, 2), k=0, p=0.75, frequency_penalty=0, presence_penalty=0, stop_sequences=[]):
|