Update app.py
Browse files18 unmodified lines1920212223242526194 unmodified lines22122222322422522618 unmodified linesimport base64import threadingfrom pytube import YouTubeapp = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])# Check if CUDA is available and set the devicedevice = "cuda" if torch.cuda.is_available() else "cpu"194 unmodified lineselse:return transcript, Noneif __name__ == '__main__':print("Starting the Dash application...")app.run(debug=True, host='0.0.0.0', port=7860)18 unmodified lines1920212223242526194 unmodified lines22122222322422522622722818 unmodified linesimport base64import threadingfrom pytube import YouTubeprint("Script started")# Check if CUDA is available and set the devicedevice = "cuda" if torch.cuda.is_available() else "cpu"194 unmodified lineselse:return transcript, Noneprint("Reached end of script definitions")if __name__ == '__main__':print("Starting the Dash application...")app.run(debug=True, host='0.0.0.0', port=7860)
app.py+3-1