Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ examples = [
|
|
9 |
["In Plains Indian tribes, elk were associated with masculinity, endurance, and bravery, and elks eyeteeth were highly valued both as objects of adornment and as the symbol of a mans hunting prowess."],
|
10 |
["In some Plains tribes, men saved the eyeteeth from their first elk kill to make into engagement jewelry for their sweetheart. In others, the number of elk teeth sewn onto a womans dress showed off the wealth and skill of her husband or father."],
|
11 |
["Ah Puch is one of the names associated with a god of death in the ancient Mayan religion. He was known as a god of death, darkness, and disaster. But he was also a god of childbirth and beginnings. The Quiche Maya believed that he ruled over Metnal, the underworld and the Yucatec Maya believed that he was just one of the lords of Xibaba, that translates to place of fear in the underworld."],
|
12 |
-
["
|
13 |
]
|
14 |
from gradio import inputs
|
15 |
from gradio.inputs import Textbox
|
@@ -18,4 +18,4 @@ from gradio import outputs
|
|
18 |
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
19 |
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
20 |
generator1 = gr.Interface.load("huggingface/gpt2-large")
|
21 |
-
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=
|
|
|
9 |
["In Plains Indian tribes, elk were associated with masculinity, endurance, and bravery, and elks eyeteeth were highly valued both as objects of adornment and as the symbol of a mans hunting prowess."],
|
10 |
["In some Plains tribes, men saved the eyeteeth from their first elk kill to make into engagement jewelry for their sweetheart. In others, the number of elk teeth sewn onto a womans dress showed off the wealth and skill of her husband or father."],
|
11 |
["Ah Puch is one of the names associated with a god of death in the ancient Mayan religion. He was known as a god of death, darkness, and disaster. But he was also a god of childbirth and beginnings. The Quiche Maya believed that he ruled over Metnal, the underworld and the Yucatec Maya believed that he was just one of the lords of Xibaba, that translates to place of fear in the underworld."],
|
12 |
+
["Nuwa was the one who patched the holes in Heaven with five colored stones, and she used the legs of a tortoise to mend the pillars. There are many instances of her in literature across China which detail her in creation stories, and today remains a figure important to Chinese culture."]
|
13 |
]
|
14 |
from gradio import inputs
|
15 |
from gradio.inputs import Textbox
|
|
|
18 |
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
|
19 |
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
20 |
generator1 = gr.Interface.load("huggingface/gpt2-large")
|
21 |
+
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=10, label="Enter a sentence to get another sentence."),title=title, examples=examples).launch()
|