Since we have a Web page default data loader we can use it directly from here.
from genai_stack.model import OpenAIGpt35Modelmodel = OpenAIGpt35Model.from_kwargs( fields={"openai_api_key": "Paste your Open AI key"})model.add_source("web", "valid_web_url")model.predict("<Any question on top of the webpage>")
import requests
url = "http://127.0.0.1:8082/predict"
res = requests.post(url, data={"query": "<Any question on top of the web page>"})
print(res.content)