Spaces:
Runtime error
Runtime error
jonathanlehner
commited on
Commit
·
45e2b25
1
Parent(s):
b0fdb9e
added simple gradio
Browse files
app.py
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
description = "Story generation with GPT-2"
|
4 |
+
title = "Talk to Peter!"
|
5 |
+
examples = [["Peter:\ndo you like peanuts?"]]
|
6 |
|
7 |
+
interface = gr.Interface.load("huggingface/ethzanalytics/ai-msgbot-gpt2-M",
|
8 |
+
description=description,
|
9 |
+
examples=examples
|
10 |
+
)
|
11 |
|
12 |
+
interface.launch()
|