VeryMadSoul commited on
Commit
61f9619
β€’
1 Parent(s): 48bdd01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -9,17 +9,12 @@ st.set_page_config(page_title="πŸ€—πŸ’¬ HugChat")
9
  # Hugging Face Credentials
10
  with st.sidebar:
11
  st.title('πŸ€—πŸ’¬ HugChat')
12
- if ('EMAIL' in st.secrets) and ('PASS' in st.secrets):
13
- st.success('HuggingFace Login credentials already provided!', icon='βœ…')
14
- hf_email = st.secrets['EMAIL']
15
- hf_pass = st.secrets['PASS']
16
  else:
17
- hf_email = st.text_input('Enter E-mail:', type='password')
18
- hf_pass = st.text_input('Enter password:', type='password')
19
- if not (hf_email and hf_pass):
20
- st.warning('Please enter your credentials!', icon='⚠️')
21
- else:
22
- st.success('Proceed to entering your prompt message!', icon='πŸ‘‰')
23
  st.markdown('πŸ“– Learn how to build this app in this [blog](https://blog.streamlit.io/how-to-build-an-llm-powered-chatbot-with-streamlit/)!')
24
 
25
  # Store LLM generated responses
 
9
  # Hugging Face Credentials
10
  with st.sidebar:
11
  st.title('πŸ€—πŸ’¬ HugChat')
12
+ hf_email = st.text_input('Enter E-mail:', type='password')
13
+ hf_pass = st.text_input('Enter password:', type='password')
14
+ if not (hf_email and hf_pass):
15
+ st.warning('Please enter your credentials!', icon='⚠️')
16
  else:
17
+ st.success('Proceed to entering your prompt message!', icon='πŸ‘‰')
 
 
 
 
 
18
  st.markdown('πŸ“– Learn how to build this app in this [blog](https://blog.streamlit.io/how-to-build-an-llm-powered-chatbot-with-streamlit/)!')
19
 
20
  # Store LLM generated responses