ytrsoymr commited on
Commit
410de35
·
verified ·
1 Parent(s): 93f1417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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 = extract_websi
 
 
 
 
 
 
 
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"])