Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
|
| 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!
|