Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from deep_translator import GoogleTranslator
|
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
| 12 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
| 13 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
| 14 |
-
timeout =
|
| 15 |
|
| 16 |
def query(prompt, is_negative=False, steps=30, cfg_scale=7, strength=0.7):
|
| 17 |
if not prompt:
|
|
|
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
| 12 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
| 13 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
| 14 |
+
timeout = 300
|
| 15 |
|
| 16 |
def query(prompt, is_negative=False, steps=30, cfg_scale=7, strength=0.7):
|
| 17 |
if not prompt:
|