Inventory / app.py
gokulp06's picture
Create app.py
cc286f2 verified
raw
history blame contribute delete
366 Bytes
import streamlit as st
from Test import get_few_shot_db_chain
st.image('/Users/gokul/Desktop/Believe/Projects/langchain/Main/images/Staples_logo_PNG5.png', caption='Business is Human')
question = st.text_input("Question: ")
if question:
chain = get_few_shot_db_chain()
response = chain.run(question)
st.header("Answer")
st.write(response)