File size: 302 Bytes
bd93d27
 
c88d08b
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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}')