ID
dlmoz6lb6vjarv2ydqiecszm2e
Status
Succeeded
Source
Web
Hardware
A100 (80GB)
Total duration
Created
by moinnadeem
Webhook

Input

prompt
Write a Python function downloads a html page from the internet and extracts the text of the h1 elements
system_prompt
You are a helpful assistant.
max_new_tokens
509
min_new_tokens
-1
temperature
0.75
top_p
0.9
top_k
50
debug
false

Output

 ```
import requests
from bs4 import BeautifulSoup

def download_h1_text(url):
    response = requests.get(url)
    soup = BeautifulSoup(response.content, 'html.parser')
    h1_elements = soup.find_all('h1')
    text = [element.text for element in h1_elements]
    return text
```
Generated in