File size: 698 Bytes
7681358
 
3e5ffb2
 
7681358
 
 
 
 
3e5ffb2
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

title="Text Generator GPT-NEO-2.7B"
description="Copy or type text. Submit and the machine will generate text."
examples = [
  ["Artificial intelligence will"],
  ["Probably everyone has heard of the 20 year-old singer named Zoe Kwan."],
  ["Mars, Joyce and Venus had their first day at Blazing Inventions Academy in North Point, Hong Kong. The following day, while Mars, Joyce and Venus are eating breakfast in the Academy’s hall, a green gas spreads from North Point throughout the world."]
   ] 

gr.Interface.load("EleutherAI/gpt-neo-2.7B", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title, description=description, examples=examples).launch(share=False)