Spaces:
Runtime error
Runtime error
Changing the code to updated syntax
Browse files
app.py
CHANGED
@@ -1,12 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
description = "Story generation with GPT-2"
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
gr.inputs.Textbox(lines=7, label="Story"),
|
8 |
-
],
|
9 |
-
description=description,
|
10 |
-
examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]]
|
11 |
-
)
|
12 |
interface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
description = "Story generation with GPT-2"
|
4 |
+
|
5 |
+
interface = gr.Interface(fn=None, title="Story Generation with GPT-2", inputs=[gr.Textbox(lines=7, label="Story")], description=description, examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]])
|
6 |
+
|
|
|
|
|
|
|
|
|
|
|
7 |
interface.launch()
|