Update app.py
Browse files
app.py
CHANGED
@@ -7,13 +7,13 @@ st.subheader('Implementation of RAG over search results bing search', divider='r
|
|
7 |
query = st.text_input("Enter the query you want to search for:")
|
8 |
st.caption("Example: Why is there a huge conflict between India and Pakistan?")
|
9 |
submit_button = st.button("Submit")
|
10 |
-
hf_token = str(st.secrets["HF_TOKEN"])
|
11 |
|
12 |
if submit_button:
|
13 |
bingsearch = BingSearch(query)
|
14 |
-
b_res = bingsearch.get_results(num=5, max_lines=
|
15 |
with st.spinner("Pipeline for RAG is running"):
|
16 |
-
st.text(help(bingsearch.rag_output))
|
|
|
17 |
text, text_json = bingsearch.rag_output(b_res, hf_token, n_iters=15)
|
18 |
|
19 |
st.subheader('Updated prompt with semantics search')
|
|
|
7 |
query = st.text_input("Enter the query you want to search for:")
|
8 |
st.caption("Example: Why is there a huge conflict between India and Pakistan?")
|
9 |
submit_button = st.button("Submit")
|
|
|
10 |
|
11 |
if submit_button:
|
12 |
bingsearch = BingSearch(query)
|
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_token = str(st.secrets["HF_TOKEN"])
|
17 |
text, text_json = bingsearch.rag_output(b_res, hf_token, n_iters=15)
|
18 |
|
19 |
st.subheader('Updated prompt with semantics search')
|