scorpio84's picture
Update app.py
87d5751 verified
Raw History Blame Contribute Delete
452 Bytes
import streamlit as st
from query_model import ask_book # βœ… Ensure this import is correct
st.title("πŸ“– AI-Powered Book Chatbot")
st.write("Ask any question about the book!")
question = st.text_input("Enter your question:")
if st.button("Ask"):
if question:
answer = ask_book(question) # βœ… This should now work
st.write("### πŸ€– Answer:")
st.write(answer)
else:
st.warning("Please enter a question.")