Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def get_model(model_type):
|
|
36 |
|
37 |
model = keras.models.load_model(model_type)
|
38 |
|
39 |
-
if '
|
40 |
data_type = 'K400'
|
41 |
else:
|
42 |
data_type = 'SSv2'
|
@@ -76,9 +76,7 @@ def main():
|
|
76 |
label="Model"
|
77 |
)
|
78 |
],
|
79 |
-
outputs=
|
80 |
-
gr.Label(num_top_classes=3, label='scores'),
|
81 |
-
],
|
82 |
examples=sample_example,
|
83 |
title="VideoSwin: Video Swin Transformer",
|
84 |
description="Keras reimplementation of <a href='https://github.com/innat/VideoSwin'>VideoSwin</a> is presented here."
|
|
|
36 |
|
37 |
model = keras.models.load_model(model_type)
|
38 |
|
39 |
+
if 'W877' in model_type:
|
40 |
data_type = 'K400'
|
41 |
else:
|
42 |
data_type = 'SSv2'
|
|
|
76 |
label="Model"
|
77 |
)
|
78 |
],
|
79 |
+
outputs=gr.Label(num_top_classes=3, label='scores'),
|
|
|
|
|
80 |
examples=sample_example,
|
81 |
title="VideoSwin: Video Swin Transformer",
|
82 |
description="Keras reimplementation of <a href='https://github.com/innat/VideoSwin'>VideoSwin</a> is presented here."
|