pdf-explainer / gnosis /gui_messages.py
maclenn77's picture
refactor: separate app components (#17) (#18)
5206fbb unverified
raw
history blame contribute delete
357 Bytes
"""Streamlit GUI messages."""
import streamlit as st
def header():
"""A header"""
st.title("GnosisPages")
st.subheader("Create your knowledge base")
def api_message(api_key):
"""Inform if the api key is set."""
if api_key is None:
return st.warning("Add your OpenAI API key")
return st.success("Your API key is setup ")