Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from transformers import pipeline | |
| title = "Story Generators" | |
| examples = [ | |
| ["Elon Musk of Tesla said today"], | |
| ["Mark Zuckerberg of Meta and Oculus said today about VR"], | |
| ["Lex Fridman once said regarding his MIT career"] | |
| ] | |
| from gradio import inputs | |
| from gradio.inputs import Textbox | |
| from gradio import outputs | |
| generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B") | |
| generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B") | |
| generator1 = gr.Interface.load("huggingface/gpt2-large") | |
| 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=False) |