From 5398d7b522e5e893ae1033be222ce5f40a741b16 Mon Sep 17 00:00:00 2001 From: Vaughan Date: Tue, 28 Nov 2023 20:41:07 -0700 Subject: [PATCH] fix indentation bug --- app/scrape/ScrapeClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scrape/ScrapeClient.py b/app/scrape/ScrapeClient.py index 95085a0..5f260ba 100644 --- a/app/scrape/ScrapeClient.py +++ b/app/scrape/ScrapeClient.py @@ -110,7 +110,7 @@ def send_request(self, url, method='GET', scrapeops_proxy_settings=None, **kwarg soup = bs.BeautifulSoup(source,'lxml') div = soup.find("div", class_ = "show-more-less-html__markup show-more-less-html__markup--clamp-after-5 relative overflow-hidden" ) if div: - prompt = f"Please extract the most important job requirements from the following job posting and list them in point form: {div.get_text()}." + prompt = f"Please extract the most important job requirements from the following job posting and list them in point form: {div.get_text()}." completion = client.chat.completions.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": prompt}]) response = completion.choices[0].message.content