cella110n commited on
Commit
c143af6
·
verified ·
1 Parent(s): 7cdca31

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -289,9 +289,10 @@ MODEL_OPTIONS = {
289
  # "cl_eva02_tagger_v1_250704": "cl_eva02_tagger_v1_250704/model.onnx",
290
  # "cl_eva02_tagger_v1_250705": "cl_eva02_tagger_v1_250705/model.onnx",
291
  "cl_eva02_tagger_v1_250706": "cl_eva02_tagger_v1_250706/model.onnx",
292
- "cl_eva02_tagger_v1_250707": "cl_eva02_tagger_v1_250707/model.onnx"
 
293
  }
294
- DEFAULT_MODEL = "cl_eva02_tagger_v1_250707"
295
  CACHE_DIR = "./model_cache"
296
 
297
  # --- Global variables for paths (initialized at startup) ---
@@ -539,10 +540,10 @@ with gr.Blocks(css=css) as demo:
539
 
540
  gr.Examples(
541
  examples=[
542
- ["https://pbs.twimg.com/media/GXBXsRvbQAAg1kp.jpg", DEFAULT_MODEL, 0.55, 0.70, "Tags + Visualization"],
543
- ["https://pbs.twimg.com/media/GjlX0gibcAA4EJ4.jpg", DEFAULT_MODEL, 0.55, 0.70, "Tags Only"],
544
- ["https://pbs.twimg.com/media/Gj4nQbjbEAATeoH.jpg", DEFAULT_MODEL, 0.55, 0.70, "Tags + Visualization"],
545
- ["https://pbs.twimg.com/media/GkbtX0GaoAMlUZt.jpg", DEFAULT_MODEL, 0.55, 0.70, "Tags + Visualization"]
546
  ],
547
  inputs=[image_input, model_choice, gen_threshold, char_threshold, output_mode],
548
  outputs=[output_tags, output_visualization],
 
289
  # "cl_eva02_tagger_v1_250704": "cl_eva02_tagger_v1_250704/model.onnx",
290
  # "cl_eva02_tagger_v1_250705": "cl_eva02_tagger_v1_250705/model.onnx",
291
  "cl_eva02_tagger_v1_250706": "cl_eva02_tagger_v1_250706/model.onnx",
292
+ "cl_eva02_tagger_v1_250707": "cl_eva02_tagger_v1_250707/model.onnx",
293
+ "cl_eva02_tagger_v1_250708": "cl_eva02_tagger_v1_250708/model.onnx"
294
  }
295
+ DEFAULT_MODEL = "cl_eva02_tagger_v1_250708"
296
  CACHE_DIR = "./model_cache"
297
 
298
  # --- Global variables for paths (initialized at startup) ---
 
540
 
541
  gr.Examples(
542
  examples=[
543
+ ["https://pbs.twimg.com/media/GXBXsRvbQAAg1kp.jpg", DEFAULT_MODEL, 0.55, 0.55, "Tags + Visualization"],
544
+ ["https://pbs.twimg.com/media/GjlX0gibcAA4EJ4.jpg", DEFAULT_MODEL, 0.55, 0.55, "Tags Only"],
545
+ ["https://pbs.twimg.com/media/Gj4nQbjbEAATeoH.jpg", DEFAULT_MODEL, 0.55, 0.55, "Tags + Visualization"],
546
+ ["https://pbs.twimg.com/media/GkbtX0GaoAMlUZt.jpg", DEFAULT_MODEL, 0.55, 0.55, "Tags + Visualization"]
547
  ],
548
  inputs=[image_input, model_choice, gen_threshold, char_threshold, output_mode],
549
  outputs=[output_tags, output_visualization],