Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -3,5 +3,17 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
+
|
7 |
+
description = "Story generation with GPT-2"
|
8 |
+
title = "Generate your own story"
|
9 |
+
examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
|
10 |
+
|
11 |
+
interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
|
12 |
+
description=description,
|
13 |
+
examples=examples
|
14 |
+
)
|
15 |
+
|
16 |
+
interface.launch()
|
17 |
+
|
18 |
+
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
19 |
+
#iface.launch()
|