Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from PIL import Image | |
| import requests | |
| from io import BytesIO | |
| influencers_data = { | |
| "influencer1": { | |
| "name": "Influencer One", | |
| "image": "./images/inf1.png", # Replace with actual image paths | |
| "details": "Details about Influencer One..." | |
| }, | |
| "influencer2": { | |
| "name": "Influencer Two", | |
| "image": "./images/inf2.png", | |
| "details": "Details about Influencer Two..." | |
| } | |
| # Add more influencers as needed | |
| } | |
| def show_influencer_search_page(): | |
| st.header("Influencer Search and Analysis") | |
| st.markdown("Discover influencers by name, niche, location, follower count, and more.") | |
| search_query = st.text_input("Search Influencers", "") | |
| # Influencer search button (assuming this is part of your UI) | |
| search_button = st.button("Search Influencers") | |
| if search_button: | |
| # Display influencer images as clickable buttons | |
| for influencer_id, influencer_info in influencers_data.items(): | |
| col1, col2 = st.columns([1, 3]) | |
| with col1: | |
| st.image(influencer_info["image"], width=50) | |
| with col2: | |
| with st.expander("Influencer Details"): | |
| st.subheader(selected_influencer_info["name"]) | |
| st.image(selected_influencer_info["image"], width=200) | |
| st.write(selected_influencer_info["details"]) |