Spaces:
Sleeping
Sleeping
Update routers/scraping_router.py
Browse files
routers/scraping_router.py
CHANGED
|
@@ -30,7 +30,7 @@ async def generate_cheerio_script(
|
|
| 30 |
x_api_key: str = Header(None)
|
| 31 |
):
|
| 32 |
try:
|
| 33 |
-
system_prompt = f"""return cheerio script to extract {request.user_input} from the following html,
|
| 34 |
enclose the cheerio script in <cheerio_script> .. </cheerio_script> format, {request.html}"""
|
| 35 |
response = ""
|
| 36 |
response = ai_client.chat(
|
|
|
|
| 30 |
x_api_key: str = Header(None)
|
| 31 |
):
|
| 32 |
try:
|
| 33 |
+
system_prompt = f"""return cheerio js script to extract {request.user_input} from the following html,
|
| 34 |
enclose the cheerio script in <cheerio_script> .. </cheerio_script> format, {request.html}"""
|
| 35 |
response = ""
|
| 36 |
response = ai_client.chat(
|