Skip to content

Commit

Permalink
Fixed Clear Button
Browse files Browse the repository at this point in the history
  • Loading branch information
w11wo committed Jun 30, 2023
1 parent aa5185b commit d653009
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spaces/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_pretrained_model(repo_id: str, decoding_method: str, num_active_paths: i
decoder_bin=str(model_name / "decoder_jit_trace-pnnx.ncnn.bin"),
joiner_param=str(model_name / "joiner_jit_trace-pnnx.ncnn.param"),
joiner_bin=str(model_name / "joiner_jit_trace-pnnx.ncnn.bin"),
num_threads=8,
num_threads=os.cpu_count(),
decoding_method=decoding_method,
num_active_paths=num_active_paths,
enable_endpoint_detection=True,
Expand Down Expand Up @@ -190,9 +190,9 @@ def update_model_dropdown(language: str):
).click(
get_pretrained_model,
inputs=[
model_dropdown.value,
decoding_method_radio.value,
num_active_paths_slider.value,
model_dropdown,
decoding_method_radio,
num_active_paths_slider,
],
)

Expand Down

0 comments on commit d653009

Please sign in to comment.