Lisandro commited on
Commit
65a7901
·
1 Parent(s): 9c908f8

feat: Update selected space to FLUX.1 [schnell] in app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -5,10 +5,14 @@ import numpy as np
5
  MAX_SEED = np.iinfo(np.int32).max
6
  MAX_IMAGE_SIZE = 2048
7
 
 
 
8
  flux_1_schnell_space = "https://black-forest-labs-flux-1-schnell.hf.space"
 
9
  client = None
10
  job = None
11
 
 
12
 
13
  def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):
14
  global job
 
5
  MAX_SEED = np.iinfo(np.int32).max
6
  MAX_IMAGE_SIZE = 2048
7
 
8
+
9
+ flux_1_schell_spaces = ["https://black-forest-labs-flux-1-schnell.hf.space", "ChristianHappy/FLUX.1-schnell", "innoai/FLUX.1-schnell", "tuan2308/FLUX.1-schnell", "FiditeNemini/FLUX.1-schnell"]
10
  flux_1_schnell_space = "https://black-forest-labs-flux-1-schnell.hf.space"
11
+
12
  client = None
13
  job = None
14
 
15
+ selected_space = gr.State(flux_1_schell_spaces[0]);
16
 
17
  def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_inference_steps=4, progress=gr.Progress(track_tqdm=True)):
18
  global job