Spaces:
Runtime error
Runtime error
File size: 830 Bytes
008e7ae 1b6d589 008e7ae cb114d5 9b01b25 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
title = "Next Sentence Generator"
examples = [
["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
["Zoe only recently began writing songs."],
["Zoe’s big break came when the godfather of Cantopop Sam Hui stumbled upon a YouTube video of Zoe singing."]
]
from gradio import inputs
from gradio.inputs import Textbox
from gradio import outputs
generator1 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence to get another sentence."),
title=title, examples=examples).launch(share=True) |