うみゅ commited on
Commit
1563bb0
·
unverified ·
2 Parent(s): 1de07f5 277b552

Merge pull request #16 from umyuu/feature/0.0.12

Browse files
Files changed (3) hide show
  1. app.py +12 -11
  2. requirements.txt +2 -2
  3. src/utils.py +1 -1
app.py CHANGED
@@ -146,22 +146,23 @@ with gr.Blocks(
146
  Thank you for your interest!
147
  """)
148
 
149
- algorithm_type = gr.Radio(
150
- ["SpectralResidual", "FineGrained"],
151
- label="Saliency",
152
- value="SpectralResidual",
153
- interactive=True
154
- )
155
  submit_button = gr.Button("submit", variant="primary")
156
- with gr.Tab("input"):
157
  image_input = gr.Image(label="input", show_label=True, sources=["upload", "clipboard"])
158
- with gr.Tab("overlay(JET)"):
159
  image_overlay_jet = gr.Image(label="jet", show_label=True, interactive=False)
160
- with gr.Tab("overlay(HOT)"):
161
  image_overlay_hot = gr.Image(label="hot", show_label=True, interactive=False)
162
 
163
- #
164
- with gr.Accordion("Sample Image Gallery", open=False):
 
 
 
 
 
 
 
165
  gr.Markdown("""
166
  ### 画像のライセンス表示
167
  画像のライセンスはすべてCC0(パブリックドメイン)です。
 
146
  Thank you for your interest!
147
  """)
148
 
 
 
 
 
 
 
149
  submit_button = gr.Button("submit", variant="primary")
150
+ with gr.Tab("input", elem_id="input_tab"):
151
  image_input = gr.Image(label="input", show_label=True, sources=["upload", "clipboard"])
152
+ with gr.Tab("overlay(JET)", elem_id="jet_tab"):
153
  image_overlay_jet = gr.Image(label="jet", show_label=True, interactive=False)
154
+ with gr.Tab("overlay(HOT)", elem_id="hot_tab"):
155
  image_overlay_hot = gr.Image(label="hot", show_label=True, interactive=False)
156
 
157
+ with gr.Accordion("Advanced options", open=False):
158
+ algorithm_type = gr.Radio(
159
+ ["SpectralResidual", "FineGrained"],
160
+ label="Saliency",
161
+ value="SpectralResidual",
162
+ interactive=True
163
+ )
164
+
165
+ with gr.Accordion("Examples", open=False):
166
  gr.Markdown("""
167
  ### 画像のライセンス表示
168
  画像のライセンスはすべてCC0(パブリックドメイン)です。
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio==5.0.1
2
- gradio_client==1.4.0
3
  opencv-python==4.10.0.84
4
  opencv-contrib-python==4.10.0.84
 
1
+ gradio==5.3.0
2
+ gradio_client==1.4.2
3
  opencv-python==4.10.0.84
4
  opencv-contrib-python==4.10.0.84
src/utils.py CHANGED
@@ -8,7 +8,7 @@ def get_package_version() -> str:
8
  """
9
  バージョン情報を取得します。
10
  """
11
- return '0.0.11'
12
 
13
 
14
  @dataclass
 
8
  """
9
  バージョン情報を取得します。
10
  """
11
+ return '0.0.12'
12
 
13
 
14
  @dataclass