ShynBui commited on
Commit
17dad0e
·
verified ·
1 Parent(s): 0f17896

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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