mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
fix docstring (#383)
![Screenshot 2022-12-19 at 11 06 48 AM](https://user-images.githubusercontent.com/43734688/208468970-5cb9bafb-f535-486e-b41f-312a2f9ffffb.png)
This commit is contained in:
parent
a01d3e6955
commit
fc66a32c6f
@ -26,7 +26,7 @@ class HuggingFacePipeline(LLM, BaseModel):
|
||||
model_id="gpt2", task="text-generation"
|
||||
)
|
||||
Example passing pipeline in directly:
|
||||
.. code-block:: python
|
||||
.. code-block:: python
|
||||
|
||||
from langchain.llms.huggingface_pipeline import HuggingFacePipeline
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
||||
|
Loading…
Reference in New Issue
Block a user