nateraw / wizardcoder-python-34b-v1.0

  • Public
  • 90 runs
  • A100 (80GB)
Iterate in playground
  • Prediction

    nateraw/wizardcoder-python-34b-v1.0:7cccdb1f912482eb5b2f5671d23e6a6313ab0e101aa15a915ec777ed8521a85b
    ID
    fxqx3vjbx4us5epbi5dv2nh5ei
    Status
    Succeeded
    Source
    Web
    Hardware
    A100 (40GB)
    Total duration
    Created
    by @nateraw

    Input

    top_k
    50
    top_p
    0.95
    message
    Write me a script for downloading the top 50 reddit posts of all time from /r/pics using PRAW.
    temperature
    1
    max_new_tokens
    1024

    Output

    Sure, here is a script for downloading the top 50 reddit posts of all time from /r/pics using PRAW: ```python import praw # initialize PRAW with appropriate credentials reddit = praw.Reddit(client_id='your_client_id', client_secret='your_client_secret', user_agent='your_user_agent', username='your_username', password='your_password') # specify the subreddit to search subreddit = reddit.subreddit('pics') # specify the sorting method top_posts = subreddit.top('all', limit=50) # download the top 50 posts for post in top_posts: # check if post has a URL or image if post.url.startswith('http'): url = post.url elif post.url.startswith('https'): url = post.url else: continue # download the image response = requests.get(url) with open(url.split('/')[-1], 'wb') as f: f.write(response.content) ``` This script initializes PRAW with appropriate credentials, specifies the subreddit to search, sorts the posts by all-time top, and then downloads the top 50 posts using the requests library. Make sure to replace the client_id, client_secret, user_agent, username, and password with your own values. You can find your own credentials by creating a new PRAW application at https://www.reddit.com/prefs/apps.
    Generated in
  • Prediction

    nateraw/wizardcoder-python-34b-v1.0:7cccdb1f912482eb5b2f5671d23e6a6313ab0e101aa15a915ec777ed8521a85b
    ID
    jwomduzbdysk6tcaj6t2dqponm
    Status
    Succeeded
    Source
    Web
    Hardware
    A100 (40GB)
    Total duration
    Created

    Input

    top_k
    50
    top_p
    0.95
    message
    Write a script to download the past year's 10Q files for APPL from SEC EDGAR using edgarpy
    temperature
    1
    max_new_tokens
    1024

    Output

    To download the past year's 10Q files for APPL from SEC EDGAR using edgarpy, you can use the following script: ```python import edgar # Set the parameters for the filing search company = "Apple Inc." form_type = "10-Q" start_date = "2021-01-01" end_date = "2022-01-01" # Create the EDGAR object edgar_obj = edgar.Edgar() # Search for the filings filings = edgar_obj.filings(cik_lookup=company, form_type=form_type, start_date=start_date, end_date=end_date) # Download the filings for filing in filings: filing.download("10q_files") print("10Q Files downloaded successfully!") ``` In the above script, we first set the parameters for the filing search, such as the company name, form type, and date range. We then create an instance of the EDGAR object and use it to search for the filings that match our criteria. Once we have the filings, we loop through them and use the `download()` method to download each filing to a specified folder on our computer. Finally, we print a message to indicate that the downloads have completed successfully.
    Generated in
  • Prediction

    nateraw/wizardcoder-python-34b-v1.0:7cccdb1f912482eb5b2f5671d23e6a6313ab0e101aa15a915ec777ed8521a85b
    ID
    xthxburbd2lbmmzpcnavxhucjq
    Status
    Succeeded
    Source
    Web
    Hardware
    A100 (40GB)
    Total duration
    Created
    by @andreasjansson

    Input

    top_k
    50
    top_p
    0.95
    message
    Generate an SVG of an analog clock.
    temperature
    1
    max_new_tokens
    1024

    Output

    Sure, here's an SVG of an analog clock: ```html <svg viewBox="0 0 100 100"> <circle cx="50" cy="50" r="45" fill="none" stroke="#333" stroke-width="3"/> <circle cx="50" cy="50" r="5" fill="#333"/> <line x1="50" y1="50" x2="50" y2="45" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="47.5" y2="50" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="52.5" y2="50" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="50" y2="52.5" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="50" y2="47.5" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="49.38" y2="50.38" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="50.62" y2="50.38" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="50.38" y2="49.62" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="50.38" y2="50.62" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="50.62" y2="49.62" stroke="#333" stroke-width="2"/> <line x1="50" y1="50" x2="49.62" y2="50.62" stroke="#333" stroke-width="2"/> <g id="hour-hand"> <rect x="45" y="25" width="5" height="40" fill="none" stroke="#333" stroke-width="3"/> </g> <g id="minute-hand"> <rect x="47.5" y="25" width="3" height="40" fill="none" stroke="#333" stroke-width="2"/> </g> <g id="second-hand"> <rect x="48.75" y="25" width="1" height="40" fill="none" stroke="#f00" stroke-width="1"/> </g> </svg> ``` The clock is centered at 50,50 and has a radius of 45. The center dot is a circle with a radius of 5. The four lines on the edge are tick marks, while the lines at 45 degree intervals are hour markers. The hands are all represented as rectangles that are rotated and translated to their appropriate positions. The hour hand is 5 pixels wide, the minute hand is 3 pixels wide, and the second hand is 1 pixel wide. The stroke widths of the hands are adjusted to give them the desired thickness.
    Generated in

Want to make some of these yourself?

Run this model