Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
|
|
| 78 |
|
| 79 |
|
| 80 |
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)
|
| 81 |
-
Chatbot = gr.Chatbot(label="Anonymous User",group_consecutive_messages=False
|
| 82 |
|
| 83 |
txt = gr.Textbox(show_label=False, placeholder = initial_message,container=False)
|
| 84 |
txt.submit(predict_prompt, [txt, user_id], Chatbot) # Adding the messages into the row with gradio.
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
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)
|
| 81 |
+
Chatbot = gr.Chatbot(label="Anonymous User",group_consecutive_messages=False) # Creating a gradio-chatbot User Interface with the label "Anonymous User".
|
| 82 |
|
| 83 |
txt = gr.Textbox(show_label=False, placeholder = initial_message,container=False)
|
| 84 |
txt.submit(predict_prompt, [txt, user_id], Chatbot) # Adding the messages into the row with gradio.
|