Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,8 @@ from dash.exceptions import PreventUpdate
|
|
| 19 |
import base64
|
| 20 |
import threading
|
| 21 |
from pytube import YouTube
|
| 22 |
-
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
|
| 23 |
|
|
|
|
| 24 |
|
| 25 |
# Check if CUDA is available and set the device
|
| 26 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
@@ -221,6 +221,8 @@ def update_transcription(n_clicks, hf_token, url):
|
|
| 221 |
else:
|
| 222 |
return transcript, None
|
| 223 |
|
|
|
|
|
|
|
| 224 |
if __name__ == '__main__':
|
| 225 |
print("Starting the Dash application...")
|
| 226 |
app.run(debug=True, host='0.0.0.0', port=7860)
|
|
|
|
| 19 |
import base64
|
| 20 |
import threading
|
| 21 |
from pytube import YouTube
|
|
|
|
| 22 |
|
| 23 |
+
print("Script started")
|
| 24 |
|
| 25 |
# Check if CUDA is available and set the device
|
| 26 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 221 |
else:
|
| 222 |
return transcript, None
|
| 223 |
|
| 224 |
+
print("Reached end of script definitions")
|
| 225 |
+
|
| 226 |
if __name__ == '__main__':
|
| 227 |
print("Starting the Dash application...")
|
| 228 |
app.run(debug=True, host='0.0.0.0', port=7860)
|