Spaces:
Sleeping
Sleeping
File size: 342 Bytes
701311c c60061d f1b3791 c60061d 490ea78 f1b3791 490ea78 701311c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from gradio_client import Client
import html
with open("simple.html", "r") as file:
text = file.read()
client = Client("sadidul012/test-space")
result = client.predict(
prompt="List me all the press releases with their headlines and description.",
source=html.escape(text),
api_name="/scrape_and_summarize"
)
print(result)
|