Smartlizardpy commited on
Commit
6b5aec2
·
verified ·
1 Parent(s): e0b2c12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def generate(outline, characters, settings ):
20
  return hikaye
21
 
22
  def cover(prompt):
23
- api_key = os.getenv('apikey')
24
  model = "mann-e/Mann-E_Turbo"
25
  headers = {"Authorization": f"Bearer {api_key}"}
26
  api_url = f"https://api-inference.huggingface.co/models/{model}"
 
20
  return hikaye
21
 
22
  def cover(prompt):
23
+ api_key = st.secrets['apikey']
24
  model = "mann-e/Mann-E_Turbo"
25
  headers = {"Authorization": f"Bearer {api_key}"}
26
  api_url = f"https://api-inference.huggingface.co/models/{model}"