jonathanlehner commited on
Commit
45e2b25
·
1 Parent(s): b0fdb9e

added simple gradio

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -1,8 +1,12 @@
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()
 
 
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()