notSoNLPnerd commited on
Commit
8ea521f
1 Parent(s): 1c101d7

better comments

Browse files
Files changed (1) hide show
  1. utils/ui.py +9 -7
utils/ui.py CHANGED
@@ -53,7 +53,7 @@ def main_column():
53
  placeholder_plain_gpt = st.empty()
54
  st.text(" ")
55
  st.text(" ")
56
- if st.session_state.get("query_type", "Retrieval Augmented (Static news dataset)") == "Retrieval Augmented (Static news dataset)":
57
  st.markdown(f"<h5> {GPT_LOCAL_RET_AUG_ANS} </h5>", unsafe_allow_html=True)
58
  else:
59
  st.markdown(f"<h5>{GPT_WEB_RET_AUG_ANS} </h5>", unsafe_allow_html=True)
@@ -74,11 +74,11 @@ def right_sidebar():
74
  def left_sidebar():
75
  with st.sidebar:
76
  image = Image.open('logo/haystack-logo-colored.png')
77
- st.markdown("Thanks for coming to this 🤗 Space.\n\n"
78
- "This is an effort towards showcasing how can you use Haystack for Retrieval Augmented QA, "
79
- "with local document store as well as WebRetriever (coming soon!) \n\n"
80
- "For more on how this was built, instructions along with a Repository "
81
- "will be published soon and updated here.")
82
 
83
  # st.markdown(
84
  # "## How to use\n"
@@ -102,7 +102,9 @@ def left_sidebar():
102
  st.markdown(
103
  "## How this works\n"
104
  "This app was built with [Haystack](https://haystack.deepset.ai) using the"
105
- " [`PromptNode`](https://docs.haystack.deepset.ai/docs/prompt_node) and [`Retriever`](https://docs.haystack.deepset.ai/docs/retriever#embedding-retrieval-recommended).\n\n"
 
 
106
  " You can find the source code in **Files and versions** tab."
107
  )
108
 
 
53
  placeholder_plain_gpt = st.empty()
54
  st.text(" ")
55
  st.text(" ")
56
+ if st.session_state.get("query_type", BUTTON_LOCAL_RET_AUG) == BUTTON_WEB_RET_AUG:
57
  st.markdown(f"<h5> {GPT_LOCAL_RET_AUG_ANS} </h5>", unsafe_allow_html=True)
58
  else:
59
  st.markdown(f"<h5>{GPT_WEB_RET_AUG_ANS} </h5>", unsafe_allow_html=True)
 
74
  def left_sidebar():
75
  with st.sidebar:
76
  image = Image.open('logo/haystack-logo-colored.png')
77
+ st.markdown("Thank you for visiting this 🤗 space. \n\n"
78
+ "This is an effort to showcase how to use Haystack for Retrieval-Augmented QA, "
79
+ "with a local document store as well as a WebRetriever (coming soon!). \n\n"
80
+ "For more information on how this was built, a repository will be published soon "
81
+ "containing the instructions and code. We will update the link here.")
82
 
83
  # st.markdown(
84
  # "## How to use\n"
 
102
  st.markdown(
103
  "## How this works\n"
104
  "This app was built with [Haystack](https://haystack.deepset.ai) using the"
105
+ " [`PromptNode`](https://docs.haystack.deepset.ai/docs/prompt_node), "
106
+ "[`Retriever`](https://docs.haystack.deepset.ai/docs/retriever#embedding-retrieval-recommended),"
107
+ "and [`FAISSDocumentStore`](https://docs.haystack.deepset.ai/reference/document-store-api#faissdocumentstore)\n\n"
108
  " You can find the source code in **Files and versions** tab."
109
  )
110