EnigmaOfTheWorld commited on
Commit
0aaeb42
1 Parent(s): 9ed4ad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,9 +15,9 @@ import torch
15
  from diffusers import StableDiffusionPipeline
16
  import gradio as gr
17
 
18
- STABILITY_HOST = 'grpc.stability.ai:443'#'<ADD >' # os.environ["STABILITY_HOST"]
19
- STABILITY_KEY = 'sk-LMwG6TPz8NHVPDHw4LAXdgLiSH37XB12r5wTGx9mD2b0oivS' # os.environ["STABILITY_KEY"] # IF NOT SECRET ADD STABILITY AI API KEY WITHIN ''
20
- cohere_key = 'EZbtz80P7j0R4ZyoyTNz13CPuZdyWPKtVlBU7dzr' # 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=[]):
 
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=[]):