Update app.py
Browse files
app.py
CHANGED
|
@@ -288,17 +288,17 @@ with st.sidebar:
|
|
| 288 |
key="trending_selectbox"
|
| 289 |
)
|
| 290 |
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
|
| 303 |
# Year selection
|
| 304 |
st.subheader("🗓️ Time Period")
|
|
|
|
| 288 |
key="trending_selectbox"
|
| 289 |
)
|
| 290 |
|
| 291 |
+
# Custom account input option
|
| 292 |
+
st.markdown("<div style='text-align: center; margin: 10px 0;'>OR</div>", unsafe_allow_html=True)
|
| 293 |
+
custom = st.text_input("", placeholder="Enter custom username/org")
|
| 294 |
+
|
| 295 |
+
# Set username based on selection or custom input
|
| 296 |
+
if custom.strip():
|
| 297 |
+
username = custom.strip()
|
| 298 |
+
elif selected_trending:
|
| 299 |
+
username = selected_trending
|
| 300 |
+
else:
|
| 301 |
+
username = "facebook" # Default fallback
|
| 302 |
|
| 303 |
# Year selection
|
| 304 |
st.subheader("🗓️ Time Period")
|