Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,10 +43,10 @@ if email and password:
|
|
| 43 |
try:
|
| 44 |
credentials = Login(email=email, passwd=password)
|
| 45 |
st.session_state.cookies = credentials.login()
|
| 46 |
-
st.session_state.logged_in =
|
| 47 |
st.session_state.chatbot = hugchat.ChatBot(st.session_state.cookies)
|
| 48 |
except Exception as e:
|
| 49 |
-
|
| 50 |
|
| 51 |
def stream(prompt):
|
| 52 |
for event in st.session_state.chatbot.chat(prompt):
|
|
|
|
| 43 |
try:
|
| 44 |
credentials = Login(email=email, passwd=password)
|
| 45 |
st.session_state.cookies = credentials.login()
|
| 46 |
+
st.session_state.logged_in = False
|
| 47 |
st.session_state.chatbot = hugchat.ChatBot(st.session_state.cookies)
|
| 48 |
except Exception as e:
|
| 49 |
+
empty.error(f"Error: {e}")
|
| 50 |
|
| 51 |
def stream(prompt):
|
| 52 |
for event in st.session_state.chatbot.chat(prompt):
|