QuestionAnswer / app.py
VipulPathak's picture
Removed inmemory db
8e1eabf
raw
history blame contribute delete
562 Bytes
from llm_function import get_retieval_chain,store_vector_db;
import streamlit as st;
# st.set_page_config(page_title="Q&A Application",);
st.markdown("""
<style>
.stTextInput > label {
font-size:120%;
font-weight:bold;
}
input[class]{
font-weight: bold;
font-size:120%;
}
</style>
""", unsafe_allow_html=True)
st.title("Q&A Based on Custom Data (RAG)");
input = st.text_input(label="Question",placeholder="Write Text here...");
if input:
chain = get_retieval_chain()
response = chain(input)
st.write("Answer")
st.write(response["result"])