SahilCarterr commited on
Commit
31cf032
·
verified ·
1 Parent(s): d398c39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -27,7 +27,7 @@ SAVE_DIR = path_dict['gradio_save_dir']
27
  os.environ["GRADIO_TEMP_DIR"] = path_dict['gradio_temp_dir']
28
  os.environ['TMPDIR'] = path_dict['gradio_temp_dir']
29
 
30
-
31
  # Function of loading pre-trained models.
32
  def load_models():
33
  base_model_path = snapshot_download("black-forest-labs/FLUX.1-Fill-dev")
@@ -40,7 +40,6 @@ def load_models():
40
  model = Calligrapher(pipe, image_encoder_path, calligrapher_path, device="cuda", num_tokens=128)
41
  return model
42
 
43
- @spaces.GPU
44
  # Init models.
45
  model = load_models()
46
  print('Model loaded!')
 
27
  os.environ["GRADIO_TEMP_DIR"] = path_dict['gradio_temp_dir']
28
  os.environ['TMPDIR'] = path_dict['gradio_temp_dir']
29
 
30
+ @spaces.GPU
31
  # Function of loading pre-trained models.
32
  def load_models():
33
  base_model_path = snapshot_download("black-forest-labs/FLUX.1-Fill-dev")
 
40
  model = Calligrapher(pipe, image_encoder_path, calligrapher_path, device="cuda", num_tokens=128)
41
  return model
42
 
 
43
  # Init models.
44
  model = load_models()
45
  print('Model loaded!')