openai-gpt / app.py
Ahsen Khaliq
Create app.py
c577785
raw
history blame
593 Bytes
import gradio as gr
title = "GPT"
description = "Gradio Demo for OpenAI GPT. 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://arxiv.org/abs/1909.05858' target='_blank'>Improving Language Understanding by Generative Pre-Training</a></p>"
examples = [
['My name is Lewis']
]
gr.Interface.load("huggingface/openai-gpt", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()