Spaces:
Sleeping
Sleeping
Update chatbot.py
Browse files- chatbot.py +5 -2
chatbot.py
CHANGED
|
@@ -143,10 +143,13 @@ with gr.Blocks() as demo:
|
|
| 143 |
register_button = gr.Button("Register")
|
| 144 |
user_id_state = gr.State()
|
| 145 |
|
|
|
|
|
|
|
|
|
|
| 146 |
chat_interface = gr.Interface(
|
| 147 |
fn=chatbot,
|
| 148 |
-
inputs=[user_id_state,
|
| 149 |
-
outputs=
|
| 150 |
title="AttachmentBot",
|
| 151 |
description="Let me survey you about your attachment with certain people in your life. To begin, enter 'start'.",
|
| 152 |
visible=False # Initially hidden, shown after login
|
|
|
|
| 143 |
register_button = gr.Button("Register")
|
| 144 |
user_id_state = gr.State()
|
| 145 |
|
| 146 |
+
chat_input = gr.Textbox(lines=7, label="Chat with AttachmentBot")
|
| 147 |
+
chat_output = gr.Textbox(label="Conversation")
|
| 148 |
+
|
| 149 |
chat_interface = gr.Interface(
|
| 150 |
fn=chatbot,
|
| 151 |
+
inputs=[user_id_state, chat_input],
|
| 152 |
+
outputs=chat_output,
|
| 153 |
title="AttachmentBot",
|
| 154 |
description="Let me survey you about your attachment with certain people in your life. To begin, enter 'start'.",
|
| 155 |
visible=False # Initially hidden, shown after login
|