Spaces:
Sleeping
Sleeping
Update company_content_generator.py
Browse files
company_content_generator.py
CHANGED
|
@@ -83,8 +83,6 @@ Use this format and structure when extracting the content from the website. Ensu
|
|
| 83 |
|
| 84 |
def company_content(llm, state):
|
| 85 |
url = state["url"]
|
| 86 |
-
if sys.platform == "win32":
|
| 87 |
-
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
| 88 |
content = asyncio.run(marketing_crawling(url))
|
| 89 |
prompt = company_prompt_template.invoke({"company_information": content})
|
| 90 |
response = llm.invoke(prompt)
|
|
|
|
| 83 |
|
| 84 |
def company_content(llm, state):
|
| 85 |
url = state["url"]
|
|
|
|
|
|
|
| 86 |
content = asyncio.run(marketing_crawling(url))
|
| 87 |
prompt = company_prompt_template.invoke({"company_information": content})
|
| 88 |
response = llm.invoke(prompt)
|