Commit ·
be22faf
1
Parent(s): fc5397b
14B
Browse files
app.py
CHANGED
|
@@ -145,8 +145,10 @@ def process_video(
|
|
| 145 |
global DKT_PIPELINE
|
| 146 |
|
| 147 |
if model_size == "14B":
|
|
|
|
| 148 |
pipeline = DKT_PIPELINE_14B
|
| 149 |
elif model_size == "1.3B":
|
|
|
|
| 150 |
pipeline = DKT_PIPELINE
|
| 151 |
else:
|
| 152 |
raise ValueError(f"Invalid model size: {model_size}")
|
|
@@ -448,7 +450,7 @@ with gr.Blocks(css=css, title="DKT", head=head_html) as demo:
|
|
| 448 |
|
| 449 |
def on_example_submit(video_file):
|
| 450 |
"""Wrapper function for examples with default parameters"""
|
| 451 |
-
return on_submit(video_file, "
|
| 452 |
|
| 453 |
examples = gr.Examples(
|
| 454 |
examples=example_inputs,
|
|
|
|
| 145 |
global DKT_PIPELINE
|
| 146 |
|
| 147 |
if model_size == "14B":
|
| 148 |
+
logger.info(f'14B model is chosen')
|
| 149 |
pipeline = DKT_PIPELINE_14B
|
| 150 |
elif model_size == "1.3B":
|
| 151 |
+
logger.info(f'1.3B model is chosen')
|
| 152 |
pipeline = DKT_PIPELINE
|
| 153 |
else:
|
| 154 |
raise ValueError(f"Invalid model size: {model_size}")
|
|
|
|
| 450 |
|
| 451 |
def on_example_submit(video_file):
|
| 452 |
"""Wrapper function for examples with default parameters"""
|
| 453 |
+
return on_submit(video_file, "14B", 5, 3)
|
| 454 |
|
| 455 |
examples = gr.Examples(
|
| 456 |
examples=example_inputs,
|