Update app.py
Browse files
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 |
-
|
16 |
-
|
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'])
|