cc1234 commited on
Commit
6274240
1 Parent(s): ac32df9
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -13,8 +13,6 @@ import numpy as np
13
  import PIL.Image
14
  import tensorflow as tf
15
 
16
- DESCRIPTION = '# [KichangKim/DeepDanbooru](https://github.com/KichangKim/DeepDanbooru)'
17
-
18
 
19
  def load_sample_image_paths() -> list[pathlib.Path]:
20
  image_dir = pathlib.Path('images')
@@ -77,8 +75,10 @@ def predict(
77
  result_threshold = dict()
78
  for index in indices:
79
  label = labels[index]
 
80
  prob = probs[index]
81
  if label in skip:
 
82
  continue
83
  if label in translate:
84
  label = translate[label]
@@ -95,7 +95,6 @@ image_paths = load_sample_image_paths()
95
  examples = [[path.as_posix(), 0.5] for path in image_paths]
96
 
97
  with gr.Blocks(css='style.css') as demo:
98
- gr.Markdown(DESCRIPTION)
99
  with gr.Row():
100
  with gr.Column():
101
  image = gr.Image(label='Input', type='pil')
 
13
  import PIL.Image
14
  import tensorflow as tf
15
 
 
 
16
 
17
  def load_sample_image_paths() -> list[pathlib.Path]:
18
  image_dir = pathlib.Path('images')
 
75
  result_threshold = dict()
76
  for index in indices:
77
  label = labels[index]
78
+ print(label)
79
  prob = probs[index]
80
  if label in skip:
81
+ print("skip", label)
82
  continue
83
  if label in translate:
84
  label = translate[label]
 
95
  examples = [[path.as_posix(), 0.5] for path in image_paths]
96
 
97
  with gr.Blocks(css='style.css') as demo:
 
98
  with gr.Row():
99
  with gr.Column():
100
  image = gr.Image(label='Input', type='pil')