Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,8 @@ from annotated_text import annotation
|
|
10 |
import validators
|
11 |
import json
|
12 |
|
|
|
|
|
13 |
#Haystack Components
|
14 |
@st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
|
15 |
def start_haystack():
|
@@ -32,9 +34,6 @@ def set_state_if_absent(key, value):
|
|
32 |
if key not in st.session_state:
|
33 |
st.session_state[key] = value
|
34 |
|
35 |
-
|
36 |
-
st.set_page_config(page_title="Game of Thrones QA with Haystack", page_icon="https://haystack.deepset.ai/img/HaystackIcon.png")
|
37 |
-
|
38 |
set_state_if_absent("question", "Who is Arya's father?")
|
39 |
set_state_if_absent("results", None)
|
40 |
|
|
|
10 |
import validators
|
11 |
import json
|
12 |
|
13 |
+
st.set_page_config(page_title="Game of Thrones QA with Haystack", page_icon="https://haystack.deepset.ai/img/HaystackIcon.png")
|
14 |
+
|
15 |
#Haystack Components
|
16 |
@st.cache(hash_funcs={"builtins.SwigPyObject": lambda _: None},allow_output_mutation=True)
|
17 |
def start_haystack():
|
|
|
34 |
if key not in st.session_state:
|
35 |
st.session_state[key] = value
|
36 |
|
|
|
|
|
|
|
37 |
set_state_if_absent("question", "Who is Arya's father?")
|
38 |
set_state_if_absent("results", None)
|
39 |
|