sabatale commited on
Commit
002a4bb
·
verified ·
1 Parent(s): e2b1e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -34,7 +34,6 @@ if st.session_state.get("api_key_configured"):
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(
@@ -45,6 +44,6 @@ if st.session_state.get("api_key_configured"):
45
  st.error("🐞    An error occurred during the request.")
46
 
47
  if st.session_state.result:
48
- voice = st.session_state.result
49
- st.write(voice[0])
50
 
 
34
 
35
  with st.spinner("🔎"):
36
  try:
 
37
  st.session_state.result = query(prompt, start_haystack(st.session_state.get("COHERE_API_KEY")))
38
  except JSONDecodeError as je:
39
  st.error(
 
44
  st.error("🐞    An error occurred during the request.")
45
 
46
  if st.session_state.result:
47
+ llm = st.session_state.result
48
+ st.write(llm])
49