patti-j commited on
Commit
1345d55
1 Parent(s): b207895

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,9 @@
1
  # Import dependencies
2
  import gradio as gr
3
 
 
 
 
4
 
5
  """class ChatWrapper:
6
 
@@ -30,6 +33,8 @@ with block:
30
  with gr.Row():
31
  message = gr.Textbox(
32
  label="What would you like to talk about?",
 
 
33
  )
34
 
35
  with gr.Row():
 
1
  # Import dependencies
2
  import gradio as gr
3
 
4
+ def response(message):
5
+ response = "You said: " message
6
+ return response
7
 
8
  """class ChatWrapper:
9
 
 
33
  with gr.Row():
34
  message = gr.Textbox(
35
  label="What would you like to talk about?",
36
+ type = "text",
37
+ fun = response
38
  )
39
 
40
  with gr.Row():