gpt2 / app.py
Ahsen Khaliq
Create app.py
390bc59
raw
history blame
No virus
670 Bytes
import gradio as gr
title = "GPT2"
description = "Gradio Demo for OpenAI GPT2. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
article = "<p style='text-align: center'><a href='https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf' target='_blank'>Language Models are Unsupervised Multitask Learners</a></p>"
examples = [
['Paris is the capital of']
]
gr.Interface.load("huggingface/gpt2", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)