Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,10 @@ from deep_translator import GoogleTranslator
|
|
9 |
import json
|
10 |
|
11 |
|
12 |
-
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3
|
13 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
14 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
15 |
-
timeout =
|
16 |
|
17 |
# Function to query the API and return the generated image
|
18 |
def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
|
|
|
9 |
import json
|
10 |
|
11 |
|
12 |
+
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3-medium-diffusers"
|
13 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
14 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
15 |
+
timeout = 100000
|
16 |
|
17 |
# Function to query the API and return the generated image
|
18 |
def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
|