gkdivya commited on
Commit
27ddd2d
·
1 Parent(s): 5872f21

Update influencer_ui.py

Browse files
Files changed (1) hide show
  1. influencer_ui.py +23 -22
influencer_ui.py CHANGED
@@ -3,34 +3,35 @@ from PIL import Image
3
  import requests
4
  from io import BytesIO
5
 
6
- influencers_data = {
7
- "influencer1": {
8
- "name": "Influencer One",
9
- "image": "./images/inf1.png", # Replace with actual image paths
10
- "details": "Details about Influencer One..."
11
- },
12
- "influencer2": {
13
- "name": "Influencer Two",
14
- "image": "./images/inf2.png",
15
- "details": "Details about Influencer Two..."
16
- }
17
- # Add more influencers as needed
18
- }
19
-
20
- # Function to display influencer details
21
-
22
-
23
 
 
 
 
 
 
 
24
  def show_influencer_search_page():
25
  st.header("Influencer Search and Analysis")
26
  st.markdown("Discover influencers by name, niche, location, follower count, and more.")
27
  search_query = st.text_input("Search Influencers", "")
28
 
29
- def display_influencer_details(influencer_info):
30
- with st.container(): # Using a container to organize the layout
31
- st.subheader(influencer_info["name"])
32
- st.image(influencer_info["image"], width=200)
33
- st.write(influencer_info["details"])
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  # Initialize session state for selected influencer
36
  if 'selected_influencer' not in st.session_state:
 
3
  import requests
4
  from io import BytesIO
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
+ def display_influencer_details(influencer_info):
8
+ with st.container(): # Using a container to organize the layout
9
+ st.subheader(influencer_info["name"])
10
+ st.image(influencer_info["image"], width=200)
11
+ st.write(influencer_info["details"])
12
+
13
  def show_influencer_search_page():
14
  st.header("Influencer Search and Analysis")
15
  st.markdown("Discover influencers by name, niche, location, follower count, and more.")
16
  search_query = st.text_input("Search Influencers", "")
17
 
18
+ influencers_data = {
19
+ "influencer1": {
20
+ "name": "Influencer One",
21
+ "image": "./images/inf1.png", # Replace with actual image paths
22
+ "details": "Details about Influencer One..."
23
+ },
24
+ "influencer2": {
25
+ "name": "Influencer Two",
26
+ "image": "./images/inf2.png",
27
+ "details": "Details about Influencer Two..."
28
+ }
29
+ # Add more influencers as needed
30
+ }
31
+
32
+ # Function to display influencer details
33
+
34
+
35
 
36
  # Initialize session state for selected influencer
37
  if 'selected_influencer' not in st.session_state: