Momal's picture
openai key input
c88d08b
raw
history blame
302 Bytes
import streamlit as st
st.title('OpenAI Key Input')
# Create a text input box for the OpenAI key
openai_key = st.text_input('Enter your OpenAI Key', type='password')
# Display the key when the user presses the 'Submit' button
if st.button('Submit'):
st.write(f'Your OpenAI Key is: {openai_key}')