csukuangfj commited on
Commit
756d91b
1 Parent(s): 2f9ed4b

small fixes

Browse files
Files changed (1) hide show
  1. model.py +4 -0
model.py CHANGED
@@ -111,6 +111,10 @@ def get_pretrained_model(
111
  return german_models[repo_id](
112
  repo_id, decoding_method=decoding_method, num_active_paths=num_active_paths
113
  )
 
 
 
 
114
  else:
115
  raise ValueError(f"Unsupported repo_id: {repo_id}")
116
 
 
111
  return german_models[repo_id](
112
  repo_id, decoding_method=decoding_method, num_active_paths=num_active_paths
113
  )
114
+ elif repo_id in japanese_models:
115
+ return japanese_models[repo_id](
116
+ repo_id, decoding_method=decoding_method, num_active_paths=num_active_paths
117
+ )
118
  else:
119
  raise ValueError(f"Unsupported repo_id: {repo_id}")
120