Updated generalization for question
Browse files
app.py
CHANGED
@@ -15,7 +15,8 @@ Answer= "Let's think step by step."
|
|
15 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
16 |
llm=HuggingFaceHub(repo_id="Writer/palmyra-small", model_kwargs={"temperature":1e-10},huggingfacehub_api_token=HUGGING_FACE_API_KEY)
|
17 |
|
18 |
-
|
|
|
19 |
|
20 |
# print(llm.run(question))
|
21 |
d=LLMChain(llm=llm,prompt=prompt)
|
|
|
15 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
16 |
llm=HuggingFaceHub(repo_id="Writer/palmyra-small", model_kwargs={"temperature":1e-10},huggingfacehub_api_token=HUGGING_FACE_API_KEY)
|
17 |
|
18 |
+
st.text_input("Input the question",'')
|
19 |
+
# question = "When was Google founded?"
|
20 |
|
21 |
# print(llm.run(question))
|
22 |
d=LLMChain(llm=llm,prompt=prompt)
|