Spaces:
Runtime error
Runtime error
Commit
·
5d58598
1
Parent(s):
2f9181e
Update app.py
Browse files
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"
|
| 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)
|