Unverified Commit db3b986b authored by Kevin Wang's avatar Kevin Wang Committed by GitHub
Browse files

[Fix] fix attempted_relative_import (#125)

* [Fix] fix attempted_relative_import

* use try...except...else
parent 9eca5cbe
......@@ -17,12 +17,12 @@ try:
from transformers import (AutoModelForCausalLM, AutoTokenizer,
GenerationConfig)
from .accel import LoadNoInit
from .utils import get_utils
_is_transformers_available = True
except ImportError:
_is_transformers_available = False
else:
from .accel import LoadNoInit
from .utils import get_utils
def input_prompt():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment