Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text"
|
|
|
|
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
description = "Story generation with GPT-2"
|
4 |
+
title = "Generate your own story"
|
5 |
+
examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
|
6 |
+
|
7 |
def greet(name):
|
8 |
return "Hello " + name + "!!"
|
9 |
|
10 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text",
|
11 |
+
description=description,
|
12 |
+
examples=examples)
|
13 |
iface.launch()
|