Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
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 = "
|
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.
|
543 |
-
["https://pbs.twimg.com/media/GjlX0gibcAA4EJ4.jpg", DEFAULT_MODEL, 0.55, 0.
|
544 |
-
["https://pbs.twimg.com/media/Gj4nQbjbEAATeoH.jpg", DEFAULT_MODEL, 0.55, 0.
|
545 |
-
["https://pbs.twimg.com/media/GkbtX0GaoAMlUZt.jpg", DEFAULT_MODEL, 0.55, 0.
|
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],
|