Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,8 +141,9 @@ def main(file_name):
|
|
| 141 |
|
| 142 |
hf_token = os.getenv("HUGGINGFACE_TOKEN")
|
| 143 |
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-3.1",use_auth_token=hf_token)
|
| 144 |
-
device = torch.device('cuda:0') if torch.cuda.is_available() else "cpu"
|
| 145 |
#device = torch.device('cpu')
|
|
|
|
| 146 |
|
| 147 |
video_file = file_name #deepfake #meganfox.mp4'
|
| 148 |
#current_path = os.getcwd()
|
|
|
|
| 141 |
|
| 142 |
hf_token = os.getenv("HUGGINGFACE_TOKEN")
|
| 143 |
pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-3.1",use_auth_token=hf_token)
|
| 144 |
+
#device = torch.device('cuda:0') if torch.cuda.is_available() else "cpu"#torch.device('cpu')
|
| 145 |
#device = torch.device('cpu')
|
| 146 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 147 |
|
| 148 |
video_file = file_name #deepfake #meganfox.mp4'
|
| 149 |
#current_path = os.getcwd()
|