currentlyexhausted commited on
Commit
bf3ba05
·
1 Parent(s): 58c555b

Fix string termination error in examples

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -36,10 +36,5 @@ inputs = gr.inputs.Textbox(label="Enter the passage to summarize")
36
  outputs = gr.outputs.Textbox(label="Summary")
37
  title = "T5 Summarizer"
38
  description = "Enter a passage and the T5 model will generate a summary based on the input passage."
39
- examples = [["""While cockroaches are often considered to be the winners in a post-nuclear world, fungi may actually be
40
- the ones thriving in highly radioactive conditions. Melanin-rich fungi found inside the Chernobyl
41
- reactor are attracted to radiation and use their melanin as a shield while also absorbing energy from
42
- the radiation to enhance their growth. These fungi could potentially be used to clean up radioactive
43
- waste and develop new cancer treatments. Therefore, if there is a nuclear accident, fungi might be able
44
- to survive and help clean up the aftermath."""], [""""How long does it take for the Earth to go around the sun? Well, a day. \"Well\" Yeah? \"Twentyfour hours.\" Twenty four hours? What do you reckon, cuz? Isn't it twenty four hours? Obviously a day, yes. A day, I hope. I know it takes, uh, ninety minutes for the space station to go around the earth Threehundred and sixty days. No, one day. Is it one day? I don't know. What is it? I say one year. I dunno, like a year. Uh, a year. One year. Twelve months. Twelve months? Threehundred and sixty five Threehundred and sixtyfive Threehundred and sixtyfive Threehundred and sixtyfive Threehundred and sixty five days? Yeah, I'd agree with that Threesixty five. It's somewhere between that, it's not quite precise, is it? Threehundred and sixtyfive and a bit days. It's nearly three hundred andit's three hundred and sixty five Five and a quarter days. Wait, the earth doesn't take one day to get around the sun. Takes about a year.""""]]
45
  gr.Interface(fn=generate_summary, inputs=inputs, outputs=outputs, title=title, description=description, examples=examples).launch()
 
36
  outputs = gr.outputs.Textbox(label="Summary")
37
  title = "T5 Summarizer"
38
  description = "Enter a passage and the T5 model will generate a summary based on the input passage."
39
+ examples = [["""While cockroaches are often considered to be the winners in a post-nuclear world, fungi may actually be the ones thriving in highly radioactive conditions. Melanin-rich fungi found inside the Chernobyl reactor are attracted to radiation and use their melanin as a shield while also absorbing energy from the radiation to enhance their growth. These fungi could potentially be used to clean up radioactive waste and develop new cancer treatments. Therefore, if there is a nuclear accident, fungi might be able to survive and help clean up the aftermath."""], [""""How long does it take for the Earth to go around the sun? Well, a day. \"Well\" Yeah? \"Twentyfour hours.\" Twenty four hours? What do you reckon, cuz? Isn't it twenty four hours? Obviously a day, yes. A day, I hope. I know it takes, uh, ninety minutes for the space station to go around the earth Threehundred and sixty days. No, one day. Is it one day? I don't know. What is it? I say one year. I dunno, like a year. Uh, a year. One year. Twelve months. Twelve months? Threehundred and sixty five Threehundred and sixtyfive Threehundred and sixtyfive Threehundred and sixtyfive Threehundred and sixty five days? Yeah, I'd agree with that Threesixty five. It's somewhere between that, it's not quite precise, is it? Threehundred and sixtyfive and a bit days. It's nearly three hundred andit's three hundred and sixty five Five and a quarter days. Wait, the earth doesn't take one day to get around the sun. Takes about a year.]\""""]]
 
 
 
 
 
40
  gr.Interface(fn=generate_summary, inputs=inputs, outputs=outputs, title=title, description=description, examples=examples).launch()