Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,13 @@ import langchain
|
|
3 |
# https://huggingface.co/spaces/joyson072/LLm-Langchain/blob/main/app.py
|
4 |
from langchain.llms import HuggingFaceHub
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# https://colab.research.google.com/drive/1hrS6_g14EcOD4ezwSGlGX2zxJegX5uNX#scrollTo=NUwUR9U7qkld
|
7 |
llm_hf = HuggingFaceHub(
|
8 |
repo_id="OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|
|
|
3 |
# https://huggingface.co/spaces/joyson072/LLm-Langchain/blob/main/app.py
|
4 |
from langchain.llms import HuggingFaceHub
|
5 |
|
6 |
+
|
7 |
+
# for the chain and prompt
|
8 |
+
from langchain.prompts import PromptTemplate
|
9 |
+
from langchain.llms import HuggingFaceHub
|
10 |
+
from langchain.chains import LLMChain
|
11 |
+
|
12 |
+
|
13 |
# https://colab.research.google.com/drive/1hrS6_g14EcOD4ezwSGlGX2zxJegX5uNX#scrollTo=NUwUR9U7qkld
|
14 |
llm_hf = HuggingFaceHub(
|
15 |
repo_id="OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
|