Spaces:
Runtime error
Runtime error
Zaman, Shaheer Shaheer
commited on
Commit
·
83ad069
1
Parent(s):
7a429cd
first commit
Browse files
app.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from gradio import inputs
|
| 3 |
+
|
| 4 |
+
description = 'Story generation with GPT-2'
|
| 5 |
+
|
| 6 |
+
interface = gr.Interface.load(
|
| 7 |
+
"huggingface/pranavpsv/gpt2-genre-story-generator",
|
| 8 |
+
title='Story Generation with GPT-2',
|
| 9 |
+
inputs = [
|
| 10 |
+
gr.inputs.Textbox(lines=7, label='Story'),
|
| 11 |
+
],
|
| 12 |
+
description=description,
|
| 13 |
+
examples = [
|
| 14 |
+
['Adventurer is approached by a mysterious stranger in the tavern for a new quest']
|
| 15 |
+
]
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
interface.launch()
|