mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
1b01ee0e3c
Builds on #14040 with community refactor merged and notebook updated. Note that with this refactor, models will be imported from `langchain_community.chat_models.huggingface` rather than the main `langchain` repo. --------- Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: ugm2 <unaigaraymaestre@gmail.com> Signed-off-by: Yuchen Liang <yuchenl3@andrew.cmu.edu> Co-authored-by: Andrew Reed <andrew.reed.r@gmail.com> Co-authored-by: Andrew Reed <areed1242@gmail.com> Co-authored-by: A-Roucher <aymeric.roucher@gmail.com> Co-authored-by: Aymeric Roucher <69208727+A-Roucher@users.noreply.github.com>
12 lines
334 B
Python
12 lines
334 B
Python
"""Test HuggingFace Chat wrapper."""
|
|
from importlib import import_module
|
|
|
|
|
|
def test_import_class() -> None:
|
|
"""Test that the class can be imported."""
|
|
module_name = "langchain_community.chat_models.huggingface"
|
|
class_name = "ChatHuggingFace"
|
|
|
|
module = import_module(module_name)
|
|
assert hasattr(module, class_name)
|