Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,6 +60,9 @@ with st.sidebar:
|
|
| 60 |
|
| 61 |
st.success("✅ API key validated successfully")
|
| 62 |
|
|
|
|
|
|
|
|
|
|
| 63 |
except Exception as e:
|
| 64 |
error_msg = str(e).lower()
|
| 65 |
if "401" in error_msg or "403" in error_msg or "unauthorized" in error_msg:
|
|
|
|
| 60 |
|
| 61 |
st.success("✅ API key validated successfully")
|
| 62 |
|
| 63 |
+
# 🔁 Force rerun to show model selector immediately
|
| 64 |
+
st.experimental_rerun()
|
| 65 |
+
|
| 66 |
except Exception as e:
|
| 67 |
error_msg = str(e).lower()
|
| 68 |
if "401" in error_msg or "403" in error_msg or "unauthorized" in error_msg:
|