LLM with flant5 updated
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ template = """Question: {question}
|
|
12 |
|
13 |
Answer: Let's think step by step."""
|
14 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
15 |
-
llm=HuggingFaceHub(repo_id="google/flan-t5-xl", model_kwargs={"temperature":1e-10},huggingfacehub_api_token=HUGGING_FACE_API_KEY)
|
16 |
|
17 |
question = "When was Google founded?"
|
18 |
|
|
|
12 |
|
13 |
Answer: Let's think step by step."""
|
14 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
15 |
+
llm=HuggingFaceHub(repo_id="google/flan-t5-xl", model_kwargs={"temperature":1e-10},huggingfacehub_api_token=HUGGING_FACE_API_KEY)
|
16 |
|
17 |
question = "When was Google founded?"
|
18 |
|