datawithsuman
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ if uploaded_files:
|
|
88 |
|
89 |
# Retrieval
|
90 |
bm25_retriever = BM25Retriever.from_defaults(nodes=nodes, similarity_top_k=1)
|
91 |
-
vector_retriever = index.as_retriever(similarity_top_k=
|
92 |
|
93 |
# Hybrid Retriever class
|
94 |
class HybridRetriever(BaseRetriever):
|
@@ -176,10 +176,10 @@ if uploaded_files:
|
|
176 |
st.success("Input text")
|
177 |
st.markdown(full_prompt)
|
178 |
|
179 |
-
st.success("
|
180 |
gen_summ = summary(full_prompt, temp = 0.6)
|
181 |
st.markdown(gen_summ)
|
182 |
-
st.success("
|
183 |
ref_summ = summary(full_prompt, temp = 0.8)
|
184 |
st.markdown(ref_summ)
|
185 |
|
|
|
88 |
|
89 |
# Retrieval
|
90 |
bm25_retriever = BM25Retriever.from_defaults(nodes=nodes, similarity_top_k=1)
|
91 |
+
vector_retriever = index.as_retriever(similarity_top_k=1)
|
92 |
|
93 |
# Hybrid Retriever class
|
94 |
class HybridRetriever(BaseRetriever):
|
|
|
176 |
st.success("Input text")
|
177 |
st.markdown(full_prompt)
|
178 |
|
179 |
+
st.success("Reference summary")
|
180 |
gen_summ = summary(full_prompt, temp = 0.6)
|
181 |
st.markdown(gen_summ)
|
182 |
+
st.success("Generated summary")
|
183 |
ref_summ = summary(full_prompt, temp = 0.8)
|
184 |
st.markdown(ref_summ)
|
185 |
|