Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
|
|
11 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # it is free
|
12 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
13 |
|
14 |
-
def query(prompt, model, is_negative=False, steps=20, cfg_scale, seed):
|
15 |
language = detect(prompt)
|
16 |
|
17 |
if language == 'ru':
|
|
|
11 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # it is free
|
12 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
13 |
|
14 |
+
def query(prompt, model, is_negative=False, steps=20, cfg_scale=7, seed=-1):
|
15 |
language = detect(prompt)
|
16 |
|
17 |
if language == 'ru':
|