sajinpgupta commited on
Commit
9b0b706
·
1 Parent(s): b8e9214

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ class DosagePredictionModel(nn.Module):
58
  pred_pain_cls_y = torch.argmax(pain_output_cls, dim = 1)
59
 
60
  if (classification_targets is None) or (regression_targets is None) or (pain_cls_tgt is None):
61
- print('Inference Mode')
62
  loss, regression_loss, med_cls_loss, pain_cls_loss = None, None, None, None
63
  else:
64
  loss_fn = nn.SmoothL1Loss() # mean square error
 
58
  pred_pain_cls_y = torch.argmax(pain_output_cls, dim = 1)
59
 
60
  if (classification_targets is None) or (regression_targets is None) or (pain_cls_tgt is None):
61
+ #print('Inference Mode')
62
  loss, regression_loss, med_cls_loss, pain_cls_loss = None, None, None, None
63
  else:
64
  loss_fn = nn.SmoothL1Loss() # mean square error