Skip to content

Commit

Permalink
fix(tasks): only import lib when function is executed
Browse files Browse the repository at this point in the history
fixes the bug about not being able to run api only using api-requirements
  • Loading branch information
kshitijrajsharma committed May 30, 2024
1 parent 0a82111 commit 9e8c553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def train_model(
feedback=None,
freeze_layers=False,
):
#importing them here so that it won't be necessary when sending tasks
#importing them here so that it won't be necessary when sending tasks ( api only)
import hot_fair_utilities
import ramp.utils
import tensorflow as tf
Expand Down

0 comments on commit 9e8c553

Please sign in to comment.