Spaces:
Build error
Build error
| 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"]) |