Jezia commited on
Commit
199d5b2
·
1 Parent(s): dcdaaec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -1,7 +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()
 
 
 
 
 
 
1
  import gradio as gr
2
+ from gradio import inputs
3
+ description = "Text generation with a miniature GPT"
4
+ interface = gr.Interface.load("huggingface/Jezia/text-generation-miniature-gpt",
5
+ title = "Text Generation with a miniature GPT",
6
+ inputs = [
7
+ gr.inputs.Textbox(lines=2, label="Text"),
8
+ ],
9
+ description=description,
10
+ examples=[["A kid is playing "]]
11
+ )
12
+ interface.launch()