sudhir2016 commited on
Commit
5d58598
·
1 Parent(s): 2f9181e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from langchain import PromptTemplate, HuggingFaceHub, LLMChain
3
  import os
4
  os.environ['HUGGINGFACEHUB_API_TOKEN'] = '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'
5
- llm=HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":1e-10})
6
  template = 'question:{question}'
7
  prompt = PromptTemplate(template=template, input_variables=["question"])
8
  chain = LLMChain(llm=llm, prompt=prompt)
 
2
  from langchain import PromptTemplate, HuggingFaceHub, LLMChain
3
  import os
4
  os.environ['HUGGINGFACEHUB_API_TOKEN'] = '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'
5
+ llm=HuggingFaceHub(repo_id="google/flan-t5-xxl")
6
  template = 'question:{question}'
7
  prompt = PromptTemplate(template=template, input_variables=["question"])
8
  chain = LLMChain(llm=llm, prompt=prompt)