test-space / test.py
sadidul012's picture
big text
f1b3791
raw
history blame
No virus
342 Bytes
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)