import gradio as gr | |
title="GPT-2" | |
description="Gradio demo for GPT-2" | |
examples=[["My name is Julien and I like to"]] | |
gr.Interface.load("huggingface/gpt2",title=title,description=description,examples=examples).launch(enable_queue=True,cache_examples=True) |