Spaces:
Runtime error
Runtime error
Download test.py from sadidul012/test-space: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/sadidul012/test-space/resolve/main/test.py
- Command line
-
hf download hf://spaces/sadidul012/test-space/test.py
-
curl -L -o test.py https://huggingface.co/spaces/sadidul012/test-space/resolve/main/test.py
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) | |