Spaces:
Sleeping
Sleeping
Update influencer_ui.py
Browse files- influencer_ui.py +1 -1
influencer_ui.py
CHANGED
|
@@ -42,7 +42,7 @@ def show_influencer_search_page():
|
|
| 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(
|
| 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', '')}}
|
|
|
|
| 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(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', '')}}
|