Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,11 @@ pipe = pipeline(task="summarization",
|
|
8 |
model=model,
|
9 |
tokenizer=tokenizer,)
|
10 |
|
|
|
|
|
11 |
|
12 |
gr.Interface.from_pipeline(pipe,
|
13 |
-
title="
|
14 |
description="Add description",
|
15 |
-
examples=[
|
16 |
).launch()
|
|
|
8 |
model=model,
|
9 |
tokenizer=tokenizer,)
|
10 |
|
11 |
+
with open('text1.txt') as f:
|
12 |
+
text1 = f.read()
|
13 |
|
14 |
gr.Interface.from_pipeline(pipe,
|
15 |
+
title="Financial Summarization",
|
16 |
description="Add description",
|
17 |
+
examples=[text1]
|
18 |
).launch()
|