File size: 1,309 Bytes
9177215 7d1720e 9177215 f3d8578 9177215 |
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 32 33 34 35 36 37 38 39 40 41 42 43 |
import streamlit as st
from components.faq import faq
from dotenv import load_dotenv
import os
load_dotenv()
def sidebar():
with st.sidebar:
st.markdown(
"## How can I help you?\n"
"1. Upload a pdf, docx, or txt file of home inspection report📄\n"
"2. Ask a question about the report\n"
"2. Or use existing extractor button to see analyzes. ⭐\n"
)
api_key_input = st.text_input(
"OpenAI API Key",
type="password",
placeholder="Paste your OpenAI API key here (sk-...)",
help="You can get your API key from https://platform.openai.com/account/api-keys.", # noqa: E501
value=os.environ.get("OPENAI_API_KEY", None)
or st.session_state.get("OPENAI_API_KEY", ""),
)
st.session_state["OPENAI_API_KEY"] = api_key_input
st.markdown("---")
st.markdown("# About")
st.markdown(
"☘️ReportIO allows you to ask questions about your "
"home inspection reports and get accurate answers with instant citations. "
)
st.markdown(
"This tool is a work in progress. "
)
st.markdown("Made by Suat")
st.markdown("---")
faq()
|