Spaces:
Sleeping
Sleeping
Update utils/chatbot_interface2.py
Browse files
utils/chatbot_interface2.py
CHANGED
@@ -101,7 +101,7 @@ class ChatbotInterface:
|
|
101 |
Reset the chatbot output.
|
102 |
:return: An empty list to reset the output.
|
103 |
"""
|
104 |
-
return []
|
105 |
|
106 |
def create_interface(self) -> gr.Blocks:
|
107 |
"""
|
@@ -181,7 +181,7 @@ class ChatbotInterface:
|
|
181 |
reset.click(
|
182 |
fn=self.reset_output,
|
183 |
inputs=None,
|
184 |
-
outputs=chatbot_output
|
185 |
)
|
186 |
|
187 |
logging.info("Gradio interface created successfully.")
|
|
|
101 |
Reset the chatbot output.
|
102 |
:return: An empty list to reset the output.
|
103 |
"""
|
104 |
+
return [], ""
|
105 |
|
106 |
def create_interface(self) -> gr.Blocks:
|
107 |
"""
|
|
|
181 |
reset.click(
|
182 |
fn=self.reset_output,
|
183 |
inputs=None,
|
184 |
+
outputs=[chatbot_output, user_input]#chatbot_output
|
185 |
)
|
186 |
|
187 |
logging.info("Gradio interface created successfully.")
|