Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -5
src/streamlit_app.py
CHANGED
|
@@ -124,16 +124,15 @@ def generate_snippet(query: str, document: str, model, max_chars: int, max_sents
|
|
| 124 |
# --- Streamlit UI ---
|
| 125 |
st.title("Grounding Snippet Generator", help="cross-encoder/ms-marco-electra-base")
|
| 126 |
|
| 127 |
-
st.
|
| 128 |
-
|
| 129 |
-
""")
|
| 130 |
|
| 131 |
-
query = st.text_input("Query",
|
| 132 |
|
| 133 |
document = st.text_area(
|
| 134 |
"Web Page Text",
|
| 135 |
height=250,
|
| 136 |
-
placeholder="Paste
|
| 137 |
)
|
| 138 |
|
| 139 |
with st.expander("Settings"):
|
|
|
|
| 124 |
# --- Streamlit UI ---
|
| 125 |
st.title("Grounding Snippet Generator", help="cross-encoder/ms-marco-electra-base")
|
| 126 |
|
| 127 |
+
st.write("How much of your page will be used to ground the model for a particular fanout query?")
|
| 128 |
+
st.write("Full Context: https://dejan.ai/blog/ai-search-filter/")
|
|
|
|
| 129 |
|
| 130 |
+
query = st.text_input("Query", placeholder="enter a search query...")
|
| 131 |
|
| 132 |
document = st.text_area(
|
| 133 |
"Web Page Text",
|
| 134 |
height=250,
|
| 135 |
+
placeholder="Paste the full page content here..."
|
| 136 |
)
|
| 137 |
|
| 138 |
with st.expander("Settings"):
|