vishnun commited on
Commit
c98b2e3
1 Parent(s): 3087fbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -12,6 +12,10 @@ hf_token = st.secrets["HF_TOKEN"]
12
  if submit_button:
13
  bingsearch = BingSearch(query)
14
  b_res = bingsearch.get_results(num=5, max_lines=3)
15
- #st.text(b_res)
16
- st.info(bingsearch.rag_output(query, b_res, hf_token, 15))
17
-
 
 
 
 
 
12
  if submit_button:
13
  bingsearch = BingSearch(query)
14
  b_res = bingsearch.get_results(num=5, max_lines=3)
15
+ with st.spinner("Pipeline for RAG is running"):
16
+ text, text_json = bingsearch.rag_output(b_res, hf_token, 15)
17
+
18
+ st.subheader('Updated prompt with semantics search')
19
+ st.info(text_json['question'])
20
+ st.subheader("Generated Text")
21
+ st.success(text_json['generated-text'])