Spaces:
Sleeping
Sleeping
Commit
·
b6b30a5
1
Parent(s):
d44dac4
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import gradio as gr
|
|
5 |
import os
|
6 |
import docx2txt
|
7 |
|
8 |
-
tokenizer = LEDTokenizer.from_pretrained("
|
9 |
-
model = LEDForConditionalGeneration.from_pretrained("
|
10 |
|
11 |
def summarize(text_file):
|
12 |
file_extension = os.path.splitext(text_file.name)[1]
|
|
|
5 |
import os
|
6 |
import docx2txt
|
7 |
|
8 |
+
tokenizer = LEDTokenizer.from_pretrained("nalmy/abstract-comp590")
|
9 |
+
model = LEDForConditionalGeneration.from_pretrained("nalmy/abstract-comp590").to("cuda").half()
|
10 |
|
11 |
def summarize(text_file):
|
12 |
file_extension = os.path.splitext(text_file.name)[1]
|