Spaces:
Sleeping
Sleeping
umyuu
commited on
Commit
·
f65b63f
1
Parent(s):
002cd15
Release 0.0.5
Browse files- src/myapp.py +6 -6
- src/utils.py +1 -1
src/myapp.py
CHANGED
|
@@ -20,7 +20,7 @@ log.info("#アプリ起動中")
|
|
| 20 |
watch = Stopwatch.start_new()
|
| 21 |
|
| 22 |
|
| 23 |
-
def
|
| 24 |
"""
|
| 25 |
JETタブを選択時
|
| 26 |
"""
|
|
@@ -34,7 +34,7 @@ def jettab_selected(image: np.ndarray):
|
|
| 34 |
return retval
|
| 35 |
|
| 36 |
|
| 37 |
-
def
|
| 38 |
"""
|
| 39 |
HOTタブを選択時
|
| 40 |
"""
|
|
@@ -106,7 +106,6 @@ def run_app(args: argparse.Namespace) -> None:
|
|
| 106 |
gr.Markdown("""
|
| 107 |
1. inputタブで画像を選択します。
|
| 108 |
2. Submitボタンを押します。
|
| 109 |
-
※画像は外部送信していません。ローカルで処理が完結します。
|
| 110 |
3. 結果は、JETタブとHOTタブに表示します。
|
| 111 |
""")
|
| 112 |
algorithm_type = gr.Radio(
|
|
@@ -120,15 +119,16 @@ def run_app(args: argparse.Namespace) -> None:
|
|
| 120 |
|
| 121 |
with gr.Row():
|
| 122 |
with gr.Tab("input", id="input"):
|
| 123 |
-
|
| 124 |
image_input = gr.Image(sources=["upload", "clipboard"],
|
| 125 |
interactive=True)
|
| 126 |
with gr.Tab("overlay(JET)"):
|
| 127 |
image_overlay_jet = gr.Image(interactive=False)
|
| 128 |
-
# tab_jet.select(
|
|
|
|
|
|
|
| 129 |
with gr.Tab("overlay(HOT)"):
|
| 130 |
image_overlay_hot = gr.Image(interactive=False)
|
| 131 |
-
# tab_hot.select(
|
| 132 |
# inputs=[image_input],
|
| 133 |
# outputs=image_overlay_hot, api_name=False)
|
| 134 |
#
|
|
|
|
| 20 |
watch = Stopwatch.start_new()
|
| 21 |
|
| 22 |
|
| 23 |
+
def jet_tab_selected(image: np.ndarray):
|
| 24 |
"""
|
| 25 |
JETタブを選択時
|
| 26 |
"""
|
|
|
|
| 34 |
return retval
|
| 35 |
|
| 36 |
|
| 37 |
+
def hot_tab_selected(image: np.ndarray):
|
| 38 |
"""
|
| 39 |
HOTタブを選択時
|
| 40 |
"""
|
|
|
|
| 106 |
gr.Markdown("""
|
| 107 |
1. inputタブで画像を選択します。
|
| 108 |
2. Submitボタンを押します。
|
|
|
|
| 109 |
3. 結果は、JETタブとHOTタブに表示します。
|
| 110 |
""")
|
| 111 |
algorithm_type = gr.Radio(
|
|
|
|
| 119 |
|
| 120 |
with gr.Row():
|
| 121 |
with gr.Tab("input", id="input"):
|
|
|
|
| 122 |
image_input = gr.Image(sources=["upload", "clipboard"],
|
| 123 |
interactive=True)
|
| 124 |
with gr.Tab("overlay(JET)"):
|
| 125 |
image_overlay_jet = gr.Image(interactive=False)
|
| 126 |
+
# tab_jet.select(jet_tab_selected,
|
| 127 |
+
# inputs=[image_input],
|
| 128 |
+
# outputs=image_overlay_jet)
|
| 129 |
with gr.Tab("overlay(HOT)"):
|
| 130 |
image_overlay_hot = gr.Image(interactive=False)
|
| 131 |
+
# tab_hot.select(hot_tab_selected,
|
| 132 |
# inputs=[image_input],
|
| 133 |
# outputs=image_overlay_hot, api_name=False)
|
| 134 |
#
|
src/utils.py
CHANGED
|
@@ -7,7 +7,7 @@ def get_package_version() -> str:
|
|
| 7 |
"""
|
| 8 |
バージョン情報
|
| 9 |
"""
|
| 10 |
-
return '0.0.
|
| 11 |
|
| 12 |
|
| 13 |
class Stopwatch:
|
|
|
|
| 7 |
"""
|
| 8 |
バージョン情報
|
| 9 |
"""
|
| 10 |
+
return '0.0.5'
|
| 11 |
|
| 12 |
|
| 13 |
class Stopwatch:
|