Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,5 +3,9 @@ import gradio as gd
|
|
3 |
def greeting(name):
|
4 |
return "Hello " + name
|
5 |
|
6 |
-
demo = gd.
|
|
|
|
|
|
|
|
|
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()
|