Skip to content

Commit

Permalink
Fixup. Format code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Apr 15, 2024
1 parent 8b5e6a3 commit 58b0f75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions pod/completion/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def copy_result_into_current_model(enrich_model_queue: EnrichModelQueue):
MODEL_COMPILE_DIR + "/" + enrich_model_queue.lang + "/exp/chain/tdnn/graph"
)
to_path: str = (
TRANSCRIPTION_MODEL_PARAM[enrich_model_queue.model_type][enrich_model_queue.lang][
"model"
]
TRANSCRIPTION_MODEL_PARAM[enrich_model_queue.model_type][
enrich_model_queue.lang
]["model"]
+ "/graph"
)
if os.path.exists(to_path):
Expand All @@ -196,9 +196,9 @@ def copy_result_into_current_model(enrich_model_queue: EnrichModelQueue):
MODEL_COMPILE_DIR + "/" + enrich_model_queue.lang + "/data/lang_test_rescore"
)
to_path: str = (
TRANSCRIPTION_MODEL_PARAM[enrich_model_queue.model_type][enrich_model_queue.lang][
"model"
]
TRANSCRIPTION_MODEL_PARAM[enrich_model_queue.model_type][
enrich_model_queue.lang
]["model"]
+ "/rescore/"
)
if os.path.isfile(from_path + "/G.fst") and os.path.isfile(
Expand All @@ -211,9 +211,9 @@ def copy_result_into_current_model(enrich_model_queue: EnrichModelQueue):
MODEL_COMPILE_DIR + "/" + enrich_model_queue.lang + "/exp/rnnlm_out"
)
to_path: str = (
TRANSCRIPTION_MODEL_PARAM[enrich_model_queue.model_type][enrich_model_queue.lang][
"model"
]
TRANSCRIPTION_MODEL_PARAM[enrich_model_queue.model_type][
enrich_model_queue.lang
]["model"]
+ "/rnnlm/"
)
if os.path.exists(from_path):
Expand Down
4 changes: 3 additions & 1 deletion pod/completion/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,9 @@ def video_completion_track_save(request, video):

if form_track.is_valid():
form_track.save()
return toggle_form_track_is_valid__video_completion_track(request, video, list_track)
return toggle_form_track_is_valid__video_completion_track(
request, video, list_track
)
else:
if request.is_ajax():
some_data_to_dump = {
Expand Down

0 comments on commit 58b0f75

Please sign in to comment.