siddhartharya commited on
Commit
9914a2b
1 Parent(s): 9a87223

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -141,7 +141,9 @@ class AutonomousEmailAgent:
141
 
142
  # Fetch company information via Firecrawl API using company URL
143
  def fetch_company_info_with_firecrawl(self, company_url):
 
144
  print(f"Fetching company info for {company_url} using Firecrawl.")
 
145
  headers = {"Authorization": f"Bearer {firecrawl_api_key}"}
146
  firecrawl_url = "https://api.firecrawl.dev/v1/scrape"
147
  data = {
 
141
 
142
  # Fetch company information via Firecrawl API using company URL
143
  def fetch_company_info_with_firecrawl(self, company_url):
144
+ firecrawl_api_key = os.getenv("FIRECRAWL_API_KEY") # Fetch the Firecrawl API key from the environment
145
  print(f"Fetching company info for {company_url} using Firecrawl.")
146
+
147
  headers = {"Authorization": f"Bearer {firecrawl_api_key}"}
148
  firecrawl_url = "https://api.firecrawl.dev/v1/scrape"
149
  data = {