Spaces:
Sleeping
Sleeping
Update influencer_ui.py
Browse files- influencer_ui.py +1 -1
influencer_ui.py
CHANGED
|
@@ -40,7 +40,7 @@ def show_influencer_search_page():
|
|
| 40 |
profile_img_url = response_dict.get('profile_image_url', profile_default_image_url)
|
| 41 |
img_response = requests.get(profile_img_url)
|
| 42 |
if img_response.status_code == 200:
|
| 43 |
-
image_url = f"downloaded_image_{response_dict.get('handle',
|
| 44 |
with open(image_url, "wb") as file:
|
| 45 |
file.write(response.content)
|
| 46 |
influencers_data = {response_dict.get('handle', "No Name"): {"name": response_dict.get('name', 'No Name'),
|
|
|
|
| 40 |
profile_img_url = response_dict.get('profile_image_url', profile_default_image_url)
|
| 41 |
img_response = requests.get(profile_img_url)
|
| 42 |
if img_response.status_code == 200:
|
| 43 |
+
image_url = f"downloaded_image_{response_dict.get('handle', 'NoName')}.jpg"
|
| 44 |
with open(image_url, "wb") as file:
|
| 45 |
file.write(response.content)
|
| 46 |
influencers_data = {response_dict.get('handle', "No Name"): {"name": response_dict.get('name', 'No Name'),
|