Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def query(prompt, model, is_negative=False, steps=20, cfg_scale=7, seed=None):
|
|
18 |
prompt = GoogleTranslator(source='ru', target='en').translate(prompt)
|
19 |
print(prompt)
|
20 |
|
21 |
-
if model == 'DALL-E 3 XL'
|
22 |
API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
|
23 |
|
24 |
payload = {
|
|
|
18 |
prompt = GoogleTranslator(source='ru', target='en').translate(prompt)
|
19 |
print(prompt)
|
20 |
|
21 |
+
if model == 'DALL-E 3 XL':
|
22 |
API_URL = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
|
23 |
|
24 |
payload = {
|