mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-25 21:11:11 +08:00
18 lines
459 B
Python
18 lines
459 B
Python
"""
|
|
HuggingFace Module
|
|
"""
|
|
from langchain_community.chat_models.huggingface import ChatHuggingFace
|
|
|
|
|
|
class HuggingFace(ChatHuggingFace):
|
|
"""
|
|
A wrapper for the HuggingFace class that provides default configuration
|
|
and could be extended with additional methods if needed.
|
|
|
|
Args:
|
|
llm_config (dict): Configuration parameters for the language model.
|
|
"""
|
|
|
|
def __init__(self, llm_config: dict):
|
|
super().__init__(**llm_config)
|