File size: 562 Bytes
65246cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"])