From 7f45b1f810b4bae149533c12767c173009f9c033 Mon Sep 17 00:00:00 2001 From: Benjamin Klieger <62450410+Bklieger@users.noreply.github.com> Date: Fri, 24 May 2024 09:43:44 -0700 Subject: [PATCH] Masking text input for Groq API Key Change to password input and move example API key to title --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 64b3e66..2b0f9e8 100644 --- a/main.py +++ b/main.py @@ -169,7 +169,7 @@ def empty_st(): with st.form("groqform"): if not GROQ_API_KEY: - groq_input_key = st.text_input("Enter your Groq API Key:", "gsk_yA...") + groq_input_key = st.text_input("Enter your Groq API Key (gsk_yA...):", "",type="password") topic_text = st.text_input("What do you want the book to be about?", "")