Discord music bot, but things won't download to the correct place

Question:
I’m making a music bot and when I download a video to then play it it just stuffs it in the middle of the project even though I specified the music folder.
Repl link/Link to where the bug appears:
https://replit.com/@elliotctester/HypatiaMusic#func.py
Screenshots, links, or other helpful context:
func.py (which has the downloading to the wrong place issue)

import yt_dlp
import os
import shutil

def give_link(name):
    with yt_dlp.YoutubeDL() as ydl:
        info = ydl.extract_info(f"ytsearch:{name}", download=False)
        entries = info.get('entries', [])
        if entries:
            if 'url_simple' in entries[0]:
                video_url = entries[0]['url_simple']
            elif 'url' in entries[0]:
                video_url = entries[0]['url']
            else:
                print(f"No video URL found for: {name}")
                return None

            if 'is_live' in entries[0] and entries[0]['is_live']:
                return video_url

            if 'entries' in entries[0] and entries[0]['entries']:
                video_url = entries[0]['entries'][0].get('url_simple') or entries[0]['entries'][0].get('url')

            return video_url
        else:
            print(f"No results found for: {name}")
            return None

def download_vid(name):
    try:
        output_path = 'music'  # Specify the correct relative path
        if not os.path.exists(output_path):
            os.makedirs(output_path)

        with yt_dlp.YoutubeDL({'outtmpl': os.path.join(output_path, '%(title)s.%(ext)s')}) as ydl:
            ydl.download([name])

    except Exception as e:
        print(f"Error occurred during video download: {e}")

def delete_audio(filename):
    os.remove(os.path.join('music', filename))

def find_music_name():
    return os.listdir("music")[0] if os.listdir("music") else None

def remove_all_files(dir):
    for f in os.listdir(dir):
        os.remove(os.path.join(dir, f))