Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,8 +91,8 @@ with gr.Blocks(theme='davehornik/Tealy',css="footer{display:none !important}") a
|
|
| 91 |
|
| 92 |
txt = gr.Textbox(show_label = False, placeholder = initial_message, container = False)
|
| 93 |
|
| 94 |
-
txt.submit(fn = return_sent, outputs = txt)
|
| 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!
|
|
|
|
| 91 |
|
| 92 |
txt = gr.Textbox(show_label = False, placeholder = initial_message, container = False)
|
| 93 |
|
| 94 |
+
txt.submit(fn = return_sent, outputs = txt, show_progress = 'hidden')
|
| 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, show_progress = 'hidden')
|
| 97 |
|
| 98 |
chatblock.launch(show_api=False) # launch!
|