Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ if submit_button:
|
|
13 |
b_res = bingsearch.get_results(num=5, max_lines=5)
|
14 |
with st.spinner("Pipeline for RAG is running"):
|
15 |
st.text(help(bingsearch.rag_output))
|
16 |
-
|
17 |
-
text, text_json = bingsearch.rag_output(b_res,
|
18 |
|
19 |
st.subheader('Updated prompt with semantics search')
|
20 |
st.info(text_json['question'])
|
|
|
13 |
b_res = bingsearch.get_results(num=5, max_lines=5)
|
14 |
with st.spinner("Pipeline for RAG is running"):
|
15 |
st.text(help(bingsearch.rag_output))
|
16 |
+
hf_key = str(st.secrets["HF_TOKEN"])
|
17 |
+
text, text_json = bingsearch.rag_output(b_res, hf_key, 15)
|
18 |
|
19 |
st.subheader('Updated prompt with semantics search')
|
20 |
st.info(text_json['question'])
|