zayed-upal commited on
Commit
edde9bd
1 Parent(s): 18dde28

API key field visibility updated

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def generate_response(cover_letter_gen, start_time):
45
  st.write(f"generated words: {len(st.session_state.cover_letter_stream.split())}")
46
  st.write(f"generation time: {round(time.time() - start_time, 2)} seconds")
47
  st.write(
48
- f"tokens per second: {round(len(st.session_state.cover_letter_stream.split())/(round(time.time() - start_time, 2)))} seconds")
49
 
50
 
51
  if 'running' not in st.session_state:
@@ -92,6 +92,6 @@ with input_col:
92
  st.session_state.cover_letter_stream = ""
93
  selected_model = st.selectbox("Select Open AI Model", options=LLMHelper.AVAILABLE_MODELS_OPENAI,
94
  disabled=st.session_state.running)
95
- open_ai_key = st.text_input("Enter your open ai API key")
96
  st.button("Generate Cover Letter", key='open_ai_gen_key', disabled=st.session_state.running,
97
  on_click=generate_openai)
 
45
  st.write(f"generated words: {len(st.session_state.cover_letter_stream.split())}")
46
  st.write(f"generation time: {round(time.time() - start_time, 2)} seconds")
47
  st.write(
48
+ f"tokens per second: {round(len(st.session_state.cover_letter_stream.split())/(round(time.time() - start_time, 2)))}")
49
 
50
 
51
  if 'running' not in st.session_state:
 
92
  st.session_state.cover_letter_stream = ""
93
  selected_model = st.selectbox("Select Open AI Model", options=LLMHelper.AVAILABLE_MODELS_OPENAI,
94
  disabled=st.session_state.running)
95
+ open_ai_key = st.text_input("Enter your open ai API key", type='password')
96
  st.button("Generate Cover Letter", key='open_ai_gen_key', disabled=st.session_state.running,
97
  on_click=generate_openai)