Secrets token appended
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ st.write(x, 'squared is', x * x)
|
|
8 |
|
9 |
# https://cobusgreyling.medium.com/langchain-creating-large-language-model-llm-applications-via-huggingface-192423883a74
|
10 |
# !pip install langchain[all]
|
11 |
-
template = """Question: {question}
|
12 |
HUGGING_FACE_API_KEY= os.environ.get("HUGGING_FACE_API_KEY")
|
13 |
|
14 |
-
Answer
|
15 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
16 |
llm=HuggingFaceHub(repo_id="google/flan-t5-xl", model_kwargs={"temperature":1e-10},huggingfacehub_api_token=HUGGING_FACE_API_KEY)
|
17 |
|
|
|
8 |
|
9 |
# https://cobusgreyling.medium.com/langchain-creating-large-language-model-llm-applications-via-huggingface-192423883a74
|
10 |
# !pip install langchain[all]
|
11 |
+
template = """Question: {question}"""
|
12 |
HUGGING_FACE_API_KEY= os.environ.get("HUGGING_FACE_API_KEY")
|
13 |
|
14 |
+
Answer= "Let's think step by step."
|
15 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
16 |
llm=HuggingFaceHub(repo_id="google/flan-t5-xl", model_kwargs={"temperature":1e-10},huggingfacehub_api_token=HUGGING_FACE_API_KEY)
|
17 |
|