sabatale commited on
Commit
12c393f
β€’
1 Parent(s): 4beb641

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -16,8 +16,6 @@ sidebar()
16
 
17
  st.write("# πŸ”Ž Ask Me Anything")
18
 
19
- pipeline = start_haystack(st.session_state.get("COHERE_API_KEY"))
20
-
21
  st.session_state["api_key_configured"] = True
22
 
23
  st.caption("(e.g., It doesn't work on Android. The app is not blocking calls!!!)")
@@ -36,7 +34,8 @@ if st.session_state.get("api_key_configured"):
36
 
37
  with st.spinner("πŸ”Ž"):
38
  try:
39
- st.session_state.result = query(prompt, pipeline)
 
40
  except JSONDecodeError as je:
41
  st.error(
42
  "πŸ›‘    Something went wrong! Database failure."
 
16
 
17
  st.write("# πŸ”Ž Ask Me Anything")
18
 
 
 
19
  st.session_state["api_key_configured"] = True
20
 
21
  st.caption("(e.g., It doesn't work on Android. The app is not blocking calls!!!)")
 
34
 
35
  with st.spinner("πŸ”Ž"):
36
  try:
37
+ print(st.session_state.get("COHERE_API_KEY"))
38
+ st.session_state.result = query(prompt, start_haystack(st.session_state.get("COHERE_API_KEY")))
39
  except JSONDecodeError as je:
40
  st.error(
41
  "πŸ›‘    Something went wrong! Database failure."