Werli commited on
Commit
7ecfeaa
·
verified ·
1 Parent(s): 0875f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -74,14 +74,9 @@ Multi-Tagger is a powerful and versatile application that integrates two cutting
74
  Features:
75
  - Supports batch processing of multiple images.
76
  - Tags images with multiple categories: general tags, character tags, and ratings.
77
- - Tags are categorized into groups (e.g., general, characters, ratings).
78
  - Displays categorized tags in a structured format.
79
- - Integrates Llama3 models to reorganize the tags into a readable English article.
80
- - Includes a separate tab for image captioning using Florence 2.
81
- - Florence 2 supports CUDA, MPS or CPU if one of them is available.
82
- - Supports various captioning tasks (e.g., Caption, Detailed Caption, Object Detection).
83
- - Displays output text and images for tasks that generate visual outputs.
84
- - The space will restart every 2 days to ensure stability and performance. It uses a background scheduler to handle the restart process.
85
 
86
  Example image by [me.](https://huggingface.co/Werli)
87
  """
@@ -930,7 +925,7 @@ restart_space_job = scheduler.add_job(_restart_space, "interval", seconds=172800
930
  # Start the scheduler
931
  scheduler.start()
932
  next_run_time_utc = restart_space_job.next_run_time.astimezone(timezone.utc)
933
- NEXT_RESTART = f"Next Restart: {next_run_time_utc.strftime('%Y-%m-%d %H:%M:%S')} (UTC)"
934
 
935
  # Using "JohnSmith9982/small_and_pretty" theme
936
  with gr.Blocks(title=TITLE, css=css, theme="Werli/Multi-Tagger", fill_width=True) as demo:
 
74
  Features:
75
  - Supports batch processing of multiple images.
76
  - Tags images with multiple categories: general tags, character tags, and ratings.
 
77
  - Displays categorized tags in a structured format.
78
+ - Includes a separate tab for image captioning using Florence 2. This model supports CUDA, MPS or CPU if one of them is available.
79
+ - Supports various captioning tasks (e.g., Caption, Detailed Caption, Object Detection), as well it will display output text and images for tasks that generate visual outputs.
 
 
 
 
80
 
81
  Example image by [me.](https://huggingface.co/Werli)
82
  """
 
925
  # Start the scheduler
926
  scheduler.start()
927
  next_run_time_utc = restart_space_job.next_run_time.astimezone(timezone.utc)
928
+ NEXT_RESTART = f"Next Restart: {next_run_time_utc.strftime('%Y-%m-%d %H:%M:%S')} (UTC) - The space will restart every 2 days to ensure stability and performance. It uses a background scheduler to handle the restart process."
929
 
930
  # Using "JohnSmith9982/small_and_pretty" theme
931
  with gr.Blocks(title=TITLE, css=css, theme="Werli/Multi-Tagger", fill_width=True) as demo: