arpm01 commited on
Commit
0d1fa55
·
1 Parent(s): a80dbe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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="financial text2text",
14
  description="Add description",
15
- examples=['text1.txt']
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()