Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,4 +49,10 @@ question = st.text_area("What do you want to ask about the website?")
|
|
| 49 |
|
| 50 |
if st.button("Get Answer"):
|
| 51 |
with st.spinner("Extracting and generating answer..."):
|
| 52 |
-
site_text =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
if st.button("Get Answer"):
|
| 51 |
with st.spinner("Extracting and generating answer..."):
|
| 52 |
+
site_text = extract_website_text(url)
|
| 53 |
+
result = qa_chain.invoke({
|
| 54 |
+
"website_content": site_text,
|
| 55 |
+
"question": question
|
| 56 |
+
})
|
| 57 |
+
st.subheader("✅ Answer")
|
| 58 |
+
st.write(result["text"])
|