Lwhieldon commited on
Commit
b05beb2
·
1 Parent(s): 865160e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -5,12 +5,11 @@ examples = [
5
  ["Karen: What do I owe the excessive volume of this giggling?\nPlankton: [chuckles] You may thank my new and original idea, darling. Free samples!\nKaren: New and original, my exhaust fan.\nPlankton: Okay, so I didn't invent the concept, but I have improved upon it by removing the only obstacle to chum's success!\nKaren: You mean the smell? Smell.\nPlankton: No. I mean getting the public to try some! Once everyone gets a taste of my delicious chum, they'll tear this place apart to get some. Plus it's free, and who can resist free?!Step right up for your free samples of delicious chum!\nNat: Hey, what did he just say it was?\nPlankton: I just said they're free!\nNat: Oh... I thought he said freaks. In that case... So glad I actually left my house today.\nPlankton: That's the spirit, people. Step on up, but please take your time and be orderly. I wanna savor this whole 'Putting-Krabs-out-of-business' business.\nSally: What is it?\nShubie: Oh, who cares silly-big-milly? It's free!\nSally: Oh, it's going to be so good 'cause it's free!\nPlankton: Eat up. Ugh. I have no idea that chum was this rotten. I better not be here when all this agony turns to anger.\nNat: Hey, he's making a run for it! We can't let him get away with this! Let's get up and... get him. "]
6
  ]
7
 
8
- demo = gr.Interface.load(
9
  "huggingface/Lwhieldon/pegasus-samsum",
10
  inputs=gr.inputs.Textbox(label="Input"),
11
  outputs=gr.outputs.Textbox(label="Output"),
 
12
  title="UMBC Fall 2022 DATA606 Capstone: Abstract Transcript Text Summarization Demo",
13
  examples=examples
14
- )
15
-
16
- demo.launch()
 
5
  ["Karen: What do I owe the excessive volume of this giggling?\nPlankton: [chuckles] You may thank my new and original idea, darling. Free samples!\nKaren: New and original, my exhaust fan.\nPlankton: Okay, so I didn't invent the concept, but I have improved upon it by removing the only obstacle to chum's success!\nKaren: You mean the smell? Smell.\nPlankton: No. I mean getting the public to try some! Once everyone gets a taste of my delicious chum, they'll tear this place apart to get some. Plus it's free, and who can resist free?!Step right up for your free samples of delicious chum!\nNat: Hey, what did he just say it was?\nPlankton: I just said they're free!\nNat: Oh... I thought he said freaks. In that case... So glad I actually left my house today.\nPlankton: That's the spirit, people. Step on up, but please take your time and be orderly. I wanna savor this whole 'Putting-Krabs-out-of-business' business.\nSally: What is it?\nShubie: Oh, who cares silly-big-milly? It's free!\nSally: Oh, it's going to be so good 'cause it's free!\nPlankton: Eat up. Ugh. I have no idea that chum was this rotten. I better not be here when all this agony turns to anger.\nNat: Hey, he's making a run for it! We can't let him get away with this! Let's get up and... get him. "]
6
  ]
7
 
8
+ gr.Interface.load(
9
  "huggingface/Lwhieldon/pegasus-samsum",
10
  inputs=gr.inputs.Textbox(label="Input"),
11
  outputs=gr.outputs.Textbox(label="Output"),
12
+ apikey="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",
13
  title="UMBC Fall 2022 DATA606 Capstone: Abstract Transcript Text Summarization Demo",
14
  examples=examples
15
+ ).launch()