Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,7 @@ elif Choise == "Text Summerization" :
|
|
| 33 |
With the locket safely in her possession, Lila decided to share her discovery with the villagers, bringing back stories and treasures from her adventure. She returned home a hero, not because of the wealth she found, but because she understood the importance of her heritage and the bonds that tied her to her community.
|
| 34 |
From that day on, Lila not only inspired others with her bravery but also sparked a newfound appreciation for the history and legends of Eldoria. The village thrived, as the tales of their ancestors brought them closer together, and Lila became a beloved storyteller, passing down the stories of the lost treasure for generations to come."""
|
| 35 |
st.write(text)
|
|
|
|
| 36 |
st.subheader("Summary")
|
| 37 |
st.write(data[0]['summary_text'])
|
| 38 |
else:
|
|
@@ -47,6 +48,7 @@ elif Choise =="Text Generation":
|
|
| 47 |
if c== "Sample Input":
|
| 48 |
text = "what is data science?"
|
| 49 |
st.write(text)
|
|
|
|
| 50 |
st.subheader("Generated Text")
|
| 51 |
st.write(data[0]['generated_text'])
|
| 52 |
else:
|
|
|
|
| 33 |
With the locket safely in her possession, Lila decided to share her discovery with the villagers, bringing back stories and treasures from her adventure. She returned home a hero, not because of the wealth she found, but because she understood the importance of her heritage and the bonds that tied her to her community.
|
| 34 |
From that day on, Lila not only inspired others with her bravery but also sparked a newfound appreciation for the history and legends of Eldoria. The village thrived, as the tales of their ancestors brought them closer together, and Lila became a beloved storyteller, passing down the stories of the lost treasure for generations to come."""
|
| 35 |
st.write(text)
|
| 36 |
+
data = summary(text)
|
| 37 |
st.subheader("Summary")
|
| 38 |
st.write(data[0]['summary_text'])
|
| 39 |
else:
|
|
|
|
| 48 |
if c== "Sample Input":
|
| 49 |
text = "what is data science?"
|
| 50 |
st.write(text)
|
| 51 |
+
data = generation(text)
|
| 52 |
st.subheader("Generated Text")
|
| 53 |
st.write(data[0]['generated_text'])
|
| 54 |
else:
|