Spaces:
Sleeping
Sleeping
Stefano Fiorucci
commited on
Commit
•
fb4073e
1
Parent(s):
b032e38
update app
Browse files
app.py
CHANGED
@@ -64,11 +64,12 @@ def query(pipe, question):
|
|
64 |
return (pipe.run(question, params={"Retriever": {"top_k": 10}, "Reader": {"top_k": 5}}), None)
|
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', '')
|
|
|
64 |
return (pipe.run(question, params={"Retriever": {"top_k": 10}, "Reader": {"top_k": 5}}), None)
|
65 |
|
66 |
def main():
|
67 |
+
st.set_page_config(page_title='Who killed Laura Palmer?',
|
68 |
+
page_icon="https://static.wikia.nocookie.net/twinpeaks/images/4/4a/Site-favicon.ico/revision/latest?cb=20210710003705")
|
69 |
+
|
70 |
pipe=start_haystack()
|
71 |
# my_ip=subprocess.run(['curl', 'ifconfig.me'], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
72 |
|
|
|
|
|
73 |
# Persistent state
|
74 |
set_state_if_absent('question', "Where is Twin Peaks?")
|
75 |
set_state_if_absent('answer', '')
|