Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -77,14 +77,14 @@ if st.button('Process'):
|
|
77 |
texts = [r[0] for r in res[:5]]
|
78 |
scores = [model.predict([text, summary]) for text in texts]
|
79 |
|
80 |
-
text_elements = []
|
81 |
-
docs = vectara_instance.similarity_search(message)
|
82 |
-
for source_idx, source_doc in enumerate(docs[:5]):
|
83 |
-
|
84 |
-
|
85 |
|
86 |
ans = f"{summary}\n HHEM Scores: {scores}"
|
87 |
st.text(ans)
|
88 |
st.text("Sources:")
|
89 |
-
for text in text_elements:
|
90 |
-
|
|
|
77 |
texts = [r[0] for r in res[:5]]
|
78 |
scores = [model.predict([text, summary]) for text in texts]
|
79 |
|
80 |
+
# text_elements = []
|
81 |
+
# docs = vectara_instance.similarity_search(message)
|
82 |
+
# for source_idx, source_doc in enumerate(docs[:5]):
|
83 |
+
# source_name = f"Source {source_idx + 1}"
|
84 |
+
# text_elements.append(source_doc.page_content)
|
85 |
|
86 |
ans = f"{summary}\n HHEM Scores: {scores}"
|
87 |
st.text(ans)
|
88 |
st.text("Sources:")
|
89 |
+
# for text in text_elements:
|
90 |
+
# st.text(text)
|