darkc0de commited on
Commit
c91d8d8
·
verified ·
1 Parent(s): fe1e99f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -34,10 +34,9 @@ def respond(message, history):
34
  response += token
35
  yield response
36
 
37
- demo = gr.ChatInterface(
38
- respond,
39
- # No additional_inputs are defined since they are now fixed.
40
- )
41
 
42
  if __name__ == "__main__":
43
- demo.launch(show_api=False, show_tips=False, share=False)
 
34
  response += token
35
  yield response
36
 
37
+
38
+ with gr.Blocks() as demo:
39
+ gr.ChatInterface(respond)
 
40
 
41
  if __name__ == "__main__":
42
+ demo.launch(show_api=False, share=False)