Spaces:
Runtime error
Runtime error
Commit
·
4eb4270
1
Parent(s):
5d58598
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
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"])
|
|
|
1 |
import gradio as gr
|
2 |
from langchain import PromptTemplate, HuggingFaceHub, LLMChain
|
3 |
import os
|
|
|
4 |
llm=HuggingFaceHub(repo_id="google/flan-t5-xxl")
|
5 |
template = 'question:{question}'
|
6 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|