Spaces:
Sleeping
Sleeping
Smartlizardpy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def generate(outline, characters, settings ):
|
|
20 |
return hikaye
|
21 |
|
22 |
def cover(prompt):
|
23 |
-
api_key =
|
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}"
|