Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ tokenizer = AutoTokenizer.from_pretrained("human-centered-summarization/financia
|
|
7 |
# model=model,
|
8 |
# tokenizer=tokenizer,)
|
9 |
|
10 |
-
pipe = pipeline(task="text2text-generation", model =
|
11 |
|
12 |
with open('text1.txt') as f:
|
13 |
text1 = f.read()
|
|
|
7 |
# model=model,
|
8 |
# tokenizer=tokenizer,)
|
9 |
|
10 |
+
pipe = pipeline(task="text2text-generation", model = model, tokenizer=tokenizer)
|
11 |
|
12 |
with open('text1.txt') as f:
|
13 |
text1 = f.read()
|