Spaces:
Sleeping
Sleeping
Added a functionality in UI
Browse files
app.py
CHANGED
|
@@ -153,5 +153,12 @@ with gr.Blocks() as demo:
|
|
| 153 |
inputs=[msg, chatbot, temperature, max_tokens],
|
| 154 |
outputs=[chatbot, chatbot, context_box]
|
| 155 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
demo.launch()
|
|
|
|
| 153 |
inputs=[msg, chatbot, temperature, max_tokens],
|
| 154 |
outputs=[chatbot, chatbot, context_box]
|
| 155 |
)
|
| 156 |
+
|
| 157 |
+
msg.submit(
|
| 158 |
+
chat_wrapper,
|
| 159 |
+
inputs=[msg, chatbot, temperature, max_tokens],
|
| 160 |
+
outputs=[chatbot, chatbot, context_box]
|
| 161 |
+
)
|
| 162 |
+
|
| 163 |
|
| 164 |
demo.launch()
|