Update app.py
Browse files
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 |
-
|
49 |
-
st.write(
|
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 |
|