-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
31 lines (25 loc) · 878 Bytes
/
main.py
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
31
import streamlit as st
from langchain_helper import get_few_shot_db_chain
# Set Streamlit title and developer details
st.set_page_config(
page_title="AtliQ Brand Store: Database Q&A 👕",
page_icon=":Tshirt:",
layout="wide",
)
# Header
st.title("AtliQ Brand Store: Database Q&A 👕")
st.write("Welcome to the AtliQ Clothing Database Q&A tool.")
st.write("Developed by Shubham Khairmode")
st.write("Contact: [email protected]")
# User input
question = st.text_input("Ask a Question:")
st.write("Ask any question about the AtliQ Cloathing database.")
if st.button("Get Answer"):
if question:
chain = get_few_shot_db_chain()
response = chain.run(question)
# Display answer
st.subheader("Answer:")
st.write(response)
# Footer
st.write("Thank you for using the AtliQ Brand Store Clothing Database Q&A tool.")