Secrets token appended
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ st.write(x, 'squared is', x * x)
|
|
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 |
-
|
13 |
|
14 |
Answer: Let's think step by step."""
|
15 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
|
|
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"])
|