Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
title="GPT-2"
|
| 4 |
+
|
| 5 |
+
description="Gradio demo for GPT-2"
|
| 6 |
+
|
| 7 |
+
examples=[["My name is Julien and I like to"]]
|
| 8 |
+
|
| 9 |
+
gr.Interface.load("huggingface/gpt2",title=title,description=description,examples=examples).launch(enable_queue=True,cache_examples=True)
|