Janmejaya commited on
Commit
6a47459
·
1 Parent(s): 4d208c5

Update influencer_ui.py

Browse files
Files changed (1) hide show
  1. influencer_ui.py +1 -3
influencer_ui.py CHANGED
@@ -32,12 +32,10 @@ def show_influencer_search_page():
32
  search_button = st.button("Search Influencers")
33
 
34
  if search_button:
35
- st.write(search_query)
36
  data = {"search_query": search_query}
37
  resp = requests.post(insta_rag_url, json=data)
38
  response_dict = json.loads(resp.text)
39
- st.write(response_dict)
40
- influencers_data = {response_dict.get('handle'): {"name": response_dict.get('handle', ''),
41
  "image": response_dict.get('profile_image_url', profile_default_image_url),
42
  "details": response_dict.get('bio', '')}}
43
  # Display influencer images as clickable buttons
 
32
  search_button = st.button("Search Influencers")
33
 
34
  if search_button:
 
35
  data = {"search_query": search_query}
36
  resp = requests.post(insta_rag_url, json=data)
37
  response_dict = json.loads(resp.text)
38
+ influencers_data = {response_dict.get('handle', "No Name"): {"name": response_dict.get('name', 'No Name'),
 
39
  "image": response_dict.get('profile_image_url', profile_default_image_url),
40
  "details": response_dict.get('bio', '')}}
41
  # Display influencer images as clickable buttons