Spaces:
Build error
Build error
Commit
·
9e77097
1
Parent(s):
268dcad
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def summarize(inputs,model,summary_length):
|
|
15 |
tokenizer = AutoTokenizer.from_pretrained("Einmalumdiewelt/BART_large_CNN_GNAD")
|
16 |
model = AutoModelForSeq2SeqLM.from_pretrained("Einmalumdiewelt/BART_large_CNN_GNAD")
|
17 |
|
18 |
-
device = "
|
19 |
#"cuda" if torch.cuda.is_available() else "CPU"
|
20 |
model.to(device)
|
21 |
|
|
|
15 |
tokenizer = AutoTokenizer.from_pretrained("Einmalumdiewelt/BART_large_CNN_GNAD")
|
16 |
model = AutoModelForSeq2SeqLM.from_pretrained("Einmalumdiewelt/BART_large_CNN_GNAD")
|
17 |
|
18 |
+
device = "cpu"
|
19 |
#"cuda" if torch.cuda.is_available() else "CPU"
|
20 |
model.to(device)
|
21 |
|