Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ base_model: meta-llama/Llama-3.2-3B-Instruct
|
|
| 9 |
Request the HTML from a page. You should clean the HTML using something like
|
| 10 |
|
| 11 |
|
| 12 |
-
|
| 13 |
from lxml.html.clean import Cleaner
|
| 14 |
import lxml.html as LH
|
| 15 |
|
|
@@ -222,7 +222,7 @@ The draft schema is:
|
|
| 222 |
|
| 223 |
You can combine the prompt, schema, and HTML together using something like:
|
| 224 |
|
| 225 |
-
|
| 226 |
def construct_messages(schema, html):
|
| 227 |
"""Construct messages for OpenAI API"""
|
| 228 |
user_prompt = (
|
|
|
|
| 9 |
Request the HTML from a page. You should clean the HTML using something like
|
| 10 |
|
| 11 |
|
| 12 |
+
```
|
| 13 |
from lxml.html.clean import Cleaner
|
| 14 |
import lxml.html as LH
|
| 15 |
|
|
|
|
| 222 |
|
| 223 |
You can combine the prompt, schema, and HTML together using something like:
|
| 224 |
|
| 225 |
+
```
|
| 226 |
def construct_messages(schema, html):
|
| 227 |
"""Construct messages for OpenAI API"""
|
| 228 |
user_prompt = (
|