Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
|
| 7 |
|
| 8 |
print(torch.cuda.is_available())
|
| 9 |
-
device = 'cuda' if torch.cuda.is_available() else cpu
|
| 10 |
summarizer = pipeline("summarization", model="ShynBui/Bartpho_spelling_correction", device=device)
|
| 11 |
|
| 12 |
# @spaces.GPU
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
print(torch.cuda.is_available())
|
| 9 |
+
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 10 |
summarizer = pipeline("summarization", model="ShynBui/Bartpho_spelling_correction", device=device)
|
| 11 |
|
| 12 |
# @spaces.GPU
|