Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ import shutil
|
|
| 15 |
import pandas as pd
|
| 16 |
import plotly.express as px
|
| 17 |
import torch
|
| 18 |
-
import torch_xla.core.xla_model as xm
|
| 19 |
from pyannote.audio import Pipeline
|
| 20 |
from pyannote.core import Annotation, Segment
|
| 21 |
from df.enhance import enhance, init_df
|
|
@@ -37,7 +37,8 @@ maximumGain = -5
|
|
| 37 |
attenLimDB = 3
|
| 38 |
|
| 39 |
try:
|
| 40 |
-
|
|
|
|
| 41 |
print("TPU is available.")
|
| 42 |
except RuntimeError as e:
|
| 43 |
print(f"TPU is not available: {e}")
|
|
|
|
| 15 |
import pandas as pd
|
| 16 |
import plotly.express as px
|
| 17 |
import torch
|
| 18 |
+
#import torch_xla.core.xla_model as xm
|
| 19 |
from pyannote.audio import Pipeline
|
| 20 |
from pyannote.core import Annotation, Segment
|
| 21 |
from df.enhance import enhance, init_df
|
|
|
|
| 37 |
attenLimDB = 3
|
| 38 |
|
| 39 |
try:
|
| 40 |
+
raise(RuntimeError("Not an error"))
|
| 41 |
+
#device = xm.xla_device()
|
| 42 |
print("TPU is available.")
|
| 43 |
except RuntimeError as e:
|
| 44 |
print(f"TPU is not available: {e}")
|