Stefano Fiorucci
commited on
Commit
•
b032e38
1
Parent(s):
7f5df23
Update app.py
Browse files
app.py
CHANGED
@@ -65,10 +65,12 @@ def query(pipe, question):
|
|
65 |
|
66 |
def main():
|
67 |
pipe=start_haystack()
|
68 |
-
my_ip=subprocess.run(['curl', 'ifconfig.me'], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
|
|
|
|
69 |
|
70 |
# Persistent state
|
71 |
-
set_state_if_absent('question', "")
|
72 |
set_state_if_absent('answer', '')
|
73 |
set_state_if_absent('results', None)
|
74 |
set_state_if_absent('raw_json', None)
|
@@ -81,10 +83,12 @@ def main():
|
|
81 |
st.session_state.raw_json = None
|
82 |
|
83 |
# Title
|
84 |
-
|
|
|
|
|
85 |
|
86 |
st.markdown("""<br/>
|
87 |
-
Ask any question and see if the
|
88 |
|
89 |
*Note: do not use keywords, but full-fledged questions.*
|
90 |
""", unsafe_allow_html=True)
|
|
|
65 |
|
66 |
def main():
|
67 |
pipe=start_haystack()
|
68 |
+
# my_ip=subprocess.run(['curl', 'ifconfig.me'], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
69 |
+
|
70 |
+
st.set_page_config(page_title='Who killed Laura Palmer?', page_icon="https://haystack.deepset.ai/img/HaystackIcon.png")
|
71 |
|
72 |
# Persistent state
|
73 |
+
set_state_if_absent('question', "Where is Twin Peaks?")
|
74 |
set_state_if_absent('answer', '')
|
75 |
set_state_if_absent('results', None)
|
76 |
set_state_if_absent('raw_json', None)
|
|
|
83 |
st.session_state.raw_json = None
|
84 |
|
85 |
# Title
|
86 |
+
# Title
|
87 |
+
st.write("# Who killed Laura Palmer?")
|
88 |
+
st.write("### The first Twin Peaks Question Answering system!")
|
89 |
|
90 |
st.markdown("""<br/>
|
91 |
+
Ask any question on Twin Peaks and see if the systsem can find the correct answer to your query!
|
92 |
|
93 |
*Note: do not use keywords, but full-fledged questions.*
|
94 |
""", unsafe_allow_html=True)
|