gabar92 commited on
Commit
7ea1aa1
·
1 Parent(s): 55a93fe
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -15,9 +15,6 @@ from utils import resize_image, make_image_square, cast_pil_image_to_torch_tenso
15
  remove_square_padding
16
 
17
 
18
- die_token = os.getenv("DIE_TOKEN")
19
-
20
-
21
  def die_inference(
22
  image_raw,
23
  num_of_die_iterations,
@@ -91,6 +88,8 @@ def main():
91
 
92
  num_of_die_iterations_list = [1, 2, 3]
93
 
 
 
94
  # Load example images from the private repository
95
  example_image_list = []
96
  example_images = [
@@ -112,7 +111,6 @@ def main():
112
  example_image_list.append([Image.open(image_path)])
113
 
114
  # Load DIE model
115
- die_token = os.getenv("DIE_TOKEN")
116
  model_path = hf_hub_download(
117
  repo_id="gabar92/DIE",
118
  filename=args.die_model_path,
 
15
  remove_square_padding
16
 
17
 
 
 
 
18
  def die_inference(
19
  image_raw,
20
  num_of_die_iterations,
 
88
 
89
  num_of_die_iterations_list = [1, 2, 3]
90
 
91
+ die_token = os.getenv("DIE_TOKEN")
92
+
93
  # Load example images from the private repository
94
  example_image_list = []
95
  example_images = [
 
111
  example_image_list.append([Image.open(image_path)])
112
 
113
  # Load DIE model
 
114
  model_path = hf_hub_download(
115
  repo_id="gabar92/DIE",
116
  filename=args.die_model_path,