kavansaun commited on
Commit
39a44f1
·
verified ·
1 Parent(s): 41a1e92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,7 +87,7 @@ with gr.Blocks(theme='davehornik/Tealy',css="footer{display:none !important}") a
87
  return gr.Textbox(value = None, show_label = False, placeholder = initial_message, container = False)
88
 
89
  initial_message = "Please write your prompt here and press 'enter'" # Initial message for the User Interface (basically the message for the typing input area so change the message under the quotes if you want to change that)
90
- Chatbot = gr.Chatbot(label="Anonymous User",layout=['bubble'],show_share_button = False,show_copy_button = False) # Creating a gradio-chatbot User Interface with the label "Anonymous User".
91
 
92
  txt = gr.Textbox(show_label = False, placeholder = initial_message, container = False)
93
 
@@ -95,4 +95,4 @@ with gr.Blocks(theme='davehornik/Tealy',css="footer{display:none !important}") a
95
  txt.submit(fn = predict_prompt, inputs = [txt, user_id], outputs = Chatbot, show_progress = 'hidden') # Adding the messages into the row with gradio.
96
  Chatbot.change(fn = return_placeholder, inputs = None, outputs = txt)
97
 
98
- chatblock.launch(show_api=False) # launch!
 
87
  return gr.Textbox(value = None, show_label = False, placeholder = initial_message, container = False)
88
 
89
  initial_message = "Please write your prompt here and press 'enter'" # Initial message for the User Interface (basically the message for the typing input area so change the message under the quotes if you want to change that)
90
+ Chatbot = gr.Chatbot(label="Anonymous User",layout=['bubble'],show_share_button = False,show_copy_button = False,show_api=False) # Creating a gradio-chatbot User Interface with the label "Anonymous User".
91
 
92
  txt = gr.Textbox(show_label = False, placeholder = initial_message, container = False)
93
 
 
95
  txt.submit(fn = predict_prompt, inputs = [txt, user_id], outputs = Chatbot, show_progress = 'hidden') # Adding the messages into the row with gradio.
96
  Chatbot.change(fn = return_placeholder, inputs = None, outputs = txt)
97
 
98
+ chatblock.launch() # launch!