Spaces:
Build error
Build error
Jack Sambath commited on
Commit ·
2990280
1
Parent(s): 7ff6611
added spinner
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
| 6 |
from langchain.chains.question_answering import load_qa_chain
|
| 7 |
import streamlit as st
|
| 8 |
from langchain.chains import RetrievalQA
|
| 9 |
-
@st.
|
| 10 |
def llm():
|
| 11 |
return HuggingFaceHub(repo_id="google/flan-t5-small", model_kwargs={"temperature":0,"max_length":200}, huggingfacehub_api_token="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") # type: ignore
|
| 12 |
def main():
|
|
|
|
| 6 |
from langchain.chains.question_answering import load_qa_chain
|
| 7 |
import streamlit as st
|
| 8 |
from langchain.chains import RetrievalQA
|
| 9 |
+
@st.cache_data(show_spinner=True)
|
| 10 |
def llm():
|
| 11 |
return HuggingFaceHub(repo_id="google/flan-t5-small", model_kwargs={"temperature":0,"max_length":200}, huggingfacehub_api_token="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") # type: ignore
|
| 12 |
def main():
|