Spaces:
Runtime error
Runtime error
iamviveksrk
commited on
Commit
•
a1c7b5a
1
Parent(s):
ee4baf9
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from haystack.document_stores import InMemoryDocumentStore
|
|
7 |
from haystack.nodes import TfidfRetriever
|
8 |
from haystack.pipelines import ExtractiveQAPipeline
|
9 |
from haystack.nodes import FARMReader
|
|
|
10 |
import joblib
|
11 |
|
12 |
@st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
|
@@ -35,7 +36,7 @@ set_state_if_absent("results", None)
|
|
35 |
def reset_results(*args):
|
36 |
st.session_state.results = None
|
37 |
|
38 |
-
st.markdown('''#Welcome to **SRM RP explorer**!
|
39 |
This QA demo uses a [Haystack Extractive QA Pipeline](https://haystack.deepset.ai/components/ready-made-pipelines#extractiveqapipeline) with
|
40 |
an [InMemoryDocumentStore](https://haystack.deepset.ai/components/document-store) which contains abstracts of 17k+ research papers associated with SRM university''')
|
41 |
|
|
|
7 |
from haystack.nodes import TfidfRetriever
|
8 |
from haystack.pipelines import ExtractiveQAPipeline
|
9 |
from haystack.nodes import FARMReader
|
10 |
+
import time
|
11 |
import joblib
|
12 |
|
13 |
@st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
|
|
|
36 |
def reset_results(*args):
|
37 |
st.session_state.results = None
|
38 |
|
39 |
+
st.markdown('''# Welcome to **SRM RP explorer**!
|
40 |
This QA demo uses a [Haystack Extractive QA Pipeline](https://haystack.deepset.ai/components/ready-made-pipelines#extractiveqapipeline) with
|
41 |
an [InMemoryDocumentStore](https://haystack.deepset.ai/components/document-store) which contains abstracts of 17k+ research papers associated with SRM university''')
|
42 |
|