Spaces:
Running
Running
Update logs
Browse files
app.py
CHANGED
|
@@ -231,9 +231,10 @@ with st.sidebar:
|
|
| 231 |
try:
|
| 232 |
st.session_state[SLIDE_GENERATOR].set_model(llm_provider_to_use)
|
| 233 |
except Exception as e:
|
| 234 |
-
logger.
|
| 235 |
# If updating fails, drop the stored instance so a new one is created
|
| 236 |
st.session_state.pop(SLIDE_GENERATOR, None)
|
|
|
|
| 237 |
api_key_token: str = ''
|
| 238 |
azure_endpoint: str = ''
|
| 239 |
azure_deployment: str = ''
|
|
@@ -292,7 +293,7 @@ with st.sidebar:
|
|
| 292 |
try:
|
| 293 |
st.session_state[SLIDE_GENERATOR].set_model(llm_provider_to_use, api_key_token)
|
| 294 |
except Exception as e:
|
| 295 |
-
logger.
|
| 296 |
# If updating fails, drop the stored instance so a new one is created
|
| 297 |
st.session_state.pop(SLIDE_GENERATOR, None)
|
| 298 |
|
|
|
|
| 231 |
try:
|
| 232 |
st.session_state[SLIDE_GENERATOR].set_model(llm_provider_to_use)
|
| 233 |
except Exception as e:
|
| 234 |
+
logger.error('Failed to update model on existing SlideDeckAI: %s', e)
|
| 235 |
# If updating fails, drop the stored instance so a new one is created
|
| 236 |
st.session_state.pop(SLIDE_GENERATOR, None)
|
| 237 |
+
|
| 238 |
api_key_token: str = ''
|
| 239 |
azure_endpoint: str = ''
|
| 240 |
azure_deployment: str = ''
|
|
|
|
| 293 |
try:
|
| 294 |
st.session_state[SLIDE_GENERATOR].set_model(llm_provider_to_use, api_key_token)
|
| 295 |
except Exception as e:
|
| 296 |
+
logger.error('Failed to update model on existing SlideDeckAI: %s', e)
|
| 297 |
# If updating fails, drop the stored instance so a new one is created
|
| 298 |
st.session_state.pop(SLIDE_GENERATOR, None)
|
| 299 |
|