Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
#1
by
soiz1
- opened
app.py
CHANGED
@@ -15,7 +15,7 @@ API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-
|
|
15 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
16 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
17 |
# Timeout for requests
|
18 |
-
timeout =
|
19 |
|
20 |
def query(prompt, model, custom_lora, is_negative=False, steps=35, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
|
21 |
# Debug log to indicate function start
|
|
|
15 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
16 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
17 |
# Timeout for requests
|
18 |
+
timeout = 200
|
19 |
|
20 |
def query(prompt, model, custom_lora, is_negative=False, steps=35, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
|
21 |
# Debug log to indicate function start
|