neo7team commited on
Commit
23120e9
·
verified ·
1 Parent(s): 2d45d55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.5-large-turbo"
13
  API_TOKEN = os.getenv("HF_READ_TOKEN")
14
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
15
- timeout = 1000
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):