Patt commited on
Commit
e0a91e5
1 Parent(s): ddb4513

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,5 +3,9 @@ import gradio as gd
3
  def greeting(name):
4
  return "Hello " + name
5
 
6
- demo = gd.Interface(fn=greeting, inputs='text', outputs='text')
 
 
 
 
7
  demo.launch()
 
3
  def greeting(name):
4
  return "Hello " + name
5
 
6
+ demo = gd.ChatInterface(fn=greeting,
7
+ inputs='text',
8
+ textbox=gr.Textbox(placeholder="Type the name to greet:", container=False, scale=7),
9
+ title="Greeting",
10
+ outputs='text')
11
  demo.launch()