Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
|
|
4 |
from langchain_community.llms import HuggingFaceEndpoint
|
5 |
from langchain.prompts import PromptTemplate
|
6 |
from transformers import pipeline
|
|
|
7 |
# Initialize the chatbot
|
8 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
9 |
# Use a pipeline as a high-level helper
|
|
|
4 |
from langchain_community.llms import HuggingFaceEndpoint
|
5 |
from langchain.prompts import PromptTemplate
|
6 |
from transformers import pipeline
|
7 |
+
from langchain_huggingface import HuggingFaceEndpoint
|
8 |
# Initialize the chatbot
|
9 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
10 |
# Use a pipeline as a high-level helper
|