prateekbh commited on
Commit
d612ae0
·
verified ·
1 Parent(s): c4d9f0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -82,6 +82,10 @@ def response(message, history, image):
82
  history[-1][1] = partial_response
83
  yield history, gr.Button(visible=False), gr.Button(visible=True, interactive=True)
84
 
 
 
 
 
85
  with gr.Blocks(css=css) as demo:
86
  with gr.Column(elem_id="col-container"):
87
  gr.HTML(title)
@@ -101,7 +105,7 @@ with gr.Blocks(css=css) as demo:
101
  [submit]
102
  )
103
 
104
- event = submit.click(*response_handler)
105
  # event.then(*postresponse_handler)
106
 
107
  demo.launch()
 
82
  history[-1][1] = partial_response
83
  yield history, gr.Button(visible=False), gr.Button(visible=True, interactive=True)
84
 
85
+ def hello_world():
86
+ gr.Warning('This is a warning message.')
87
+ return "hello world"
88
+
89
  with gr.Blocks(css=css) as demo:
90
  with gr.Column(elem_id="col-container"):
91
  gr.HTML(title)
 
105
  [submit]
106
  )
107
 
108
+ event = submit.click(*hello_world)
109
  # event.then(*postresponse_handler)
110
 
111
  demo.launch()