Update app.py
Browse files
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.
|
|
|
|
| 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."
|