manikumargouni commited on
Commit
2b0e686
·
verified ·
1 Parent(s): fc2b767

Upload inference_decision_phase.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. inference_decision_phase.py +4 -1
inference_decision_phase.py CHANGED
@@ -1,6 +1,9 @@
1
  import json
2
 
3
- from model_runtime import get_head
 
 
 
4
 
5
 
6
  def predict(text: str, confidence_threshold: float | None = None):
 
1
  import json
2
 
3
+ try:
4
+ from .model_runtime import get_head # type: ignore
5
+ except ImportError:
6
+ from model_runtime import get_head
7
 
8
 
9
  def predict(text: str, confidence_threshold: float | None = None):