Spaces:
Sleeping
Sleeping
Update app.py
Browse files5 unmodified lines67891011177 unmodified lines18919019119219319419529 unmodified lines2252262272282295 unmodified linesimport osimport zipfilefrom huggingface_hub import HfApi, HfFolder, Repository, create_repo# Function to download audio from YouTube and save it as a WAV filedef download_youtube_audio(url, audio_name):177 unmodified linesreturn f"Repo '{repoid}' created successfully!"except Exception as e:return str(e)with gr.Blocks() as demo:gr.Markdown(" # RVC Dataset Maker")29 unmodified lineswith gr.Tabs():gr.Markdown(f"### <div style='text-align: center;'>made with ❤ by <a href='https://huggingface.co/Hev832'>Hev832</a></div>")demo.launch()5 unmodified lines678910111213177 unmodified lines19119219319419519619719819920020120220320429 unmodified lines2342352362372382392402412422432442452462472485 unmodified linesimport osimport zipfilefrom huggingface_hub import HfApi, HfFolder, Repository, create_repofrom pyngrok import ngrok# Function to download audio from YouTube and save it as a WAV filedef download_youtube_audio(url, audio_name):177 unmodified linesreturn f"Repo '{repoid}' created successfully!"except Exception as e:return str(e)# Your ngrok authentication tokenngrok_authtoken = "2gzPcgAMGxQVLJDmoDGRGMEMANC_3JkRQLjdAvdb8gyEKCeXE"with gr.Blocks() as demo:gr.Markdown(" # RVC Dataset Maker")29 unmodified lineswith gr.Tabs():gr.Markdown(f"### <div style='text-align: center;'>made with ❤ by <a href='https://huggingface.co/Hev832'>Hev832</a></div>")# Start ngrok if the token is correctif ngrok_authtoken == "2gzPcgAMGxQVLJDmoDGRGMEMANC_3JkRQLjdAvdb8gyEKCeXE":ngrok.set_auth_token(ngrok_authtoken)public_url = ngrok.connect(port=7860)print(f"NGROK URL: {public_url}")demo.launch()
app.py+21-2