GuglielmoTor commited on
Commit
1fbec42
·
verified ·
1 Parent(s): 182a396

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ from gradio_utils import get_url_user_token
15
  from Bubble_API_Calls import (
16
  fetch_linkedin_token_from_bubble,
17
  bulk_upload_to_bubble,
18
- fetch_posts_from_bubble # Added new function
19
  )
20
  from Linkedin_Data_API_Calls import (
21
  fetch_linkedin_posts_core,
@@ -80,8 +80,8 @@ def process_and_store_bubble_token(url_user_token, org_urn, token_state):
80
  if current_org_urn:
81
  logging.info(f"Attempting to fetch posts from Bubble for org_urn: {current_org_urn}")
82
  try:
83
- # Assuming fetch_posts_from_bubble returns a Pandas DataFrame or None
84
- bubble_posts_df, error_message = fetch_posts_from_bubble(current_org_urn)
85
  new_state["bubble_posts_df"] = bubble_posts_df # Store DataFrame in state
86
  logging.info(f"df {len(bubble_posts_df)}")
87
 
 
15
  from Bubble_API_Calls import (
16
  fetch_linkedin_token_from_bubble,
17
  bulk_upload_to_bubble,
18
+ fetch_linkedin_posts_data_from_bubble # Added new function
19
  )
20
  from Linkedin_Data_API_Calls import (
21
  fetch_linkedin_posts_core,
 
80
  if current_org_urn:
81
  logging.info(f"Attempting to fetch posts from Bubble for org_urn: {current_org_urn}")
82
  try:
83
+ # Assuming fetch_linkedin_posts_data_from_bubble returns a Pandas DataFrame or None
84
+ bubble_posts_df, error_message = fetch_linkedin_posts_data_from_bubble(current_org_urn, "LI_posts")
85
  new_state["bubble_posts_df"] = bubble_posts_df # Store DataFrame in state
86
  logging.info(f"df {len(bubble_posts_df)}")
87