Spaces:
Sleeping
Sleeping
| 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) | |