Spaces:
Sleeping
Sleeping
Update influencer_ui.py
Browse files- influencer_ui.py +5 -6
influencer_ui.py
CHANGED
|
@@ -62,15 +62,14 @@ def show_influencer_search_page():
|
|
| 62 |
|
| 63 |
with col1:
|
| 64 |
# Display the influencer image
|
| 65 |
-
st.image(influencer_info["image"], width=
|
| 66 |
-
|
| 67 |
-
with col2:
|
| 68 |
# Create a button with the influencer's name
|
| 69 |
# Button to select an influencer
|
| 70 |
if st.button(influencer_info["name"], key=influencer_id):
|
| 71 |
st.session_state.selected_influencer = influencer_id
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 76 |
|
|
|
|
| 62 |
|
| 63 |
with col1:
|
| 64 |
# Display the influencer image
|
| 65 |
+
st.image(influencer_info["image"], width=50)
|
|
|
|
|
|
|
| 66 |
# Create a button with the influencer's name
|
| 67 |
# Button to select an influencer
|
| 68 |
if st.button(influencer_info["name"], key=influencer_id):
|
| 69 |
st.session_state.selected_influencer = influencer_id
|
| 70 |
|
| 71 |
+
with col2:
|
| 72 |
+
# Display the details of the selected influencer
|
| 73 |
+
if st.session_state.selected_influencer:
|
| 74 |
+
display_influencer_details(influencers_data[st.session_state.selected_influencer])
|
| 75 |
|