Spaces:
Sleeping
Sleeping
Update influencer_ui.py
Browse files- influencer_ui.py +2 -1
influencer_ui.py
CHANGED
|
@@ -35,7 +35,7 @@ def show_influencer_search_page():
|
|
| 35 |
data = {"search_query": search_query}
|
| 36 |
resp = requests.post(insta_rag_url, json=data)
|
| 37 |
response_dict = json.loads(resp.text)
|
| 38 |
-
|
| 39 |
# Download images
|
| 40 |
profile_img_url = response_dict.get('profile_image_url', profile_default_image_url)
|
| 41 |
img_response = requests.get(profile_img_url)
|
|
@@ -45,6 +45,7 @@ def show_influencer_search_page():
|
|
| 45 |
file.write(img_response.content)
|
| 46 |
influencers_data = {response_dict.get('handle', "No Name"): {"name": response_dict.get('name', 'No Name'),
|
| 47 |
"image": image_url,
|
|
|
|
| 48 |
"details": response_dict.get('bio', '')}}
|
| 49 |
|
| 50 |
# Display influencer images as clickable buttons
|
|
|
|
| 35 |
data = {"search_query": search_query}
|
| 36 |
resp = requests.post(insta_rag_url, json=data)
|
| 37 |
response_dict = json.loads(resp.text)
|
| 38 |
+
st.write(response_dict)
|
| 39 |
# Download images
|
| 40 |
profile_img_url = response_dict.get('profile_image_url', profile_default_image_url)
|
| 41 |
img_response = requests.get(profile_img_url)
|
|
|
|
| 45 |
file.write(img_response.content)
|
| 46 |
influencers_data = {response_dict.get('handle', "No Name"): {"name": response_dict.get('name', 'No Name'),
|
| 47 |
"image": image_url,
|
| 48 |
+
"followers": response_dict.get('followersCount', ''),
|
| 49 |
"details": response_dict.get('bio', '')}}
|
| 50 |
|
| 51 |
# Display influencer images as clickable buttons
|