LTW-1181203031 commited on
Commit
d1047a9
1 Parent(s): 839ed13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -147,10 +147,6 @@ def chatbot_interface(message):
147
 
148
  return response, chat_history_text
149
 
150
- def clear_chat_history():
151
- # Clear the chat history
152
- chat_history.clear()
153
-
154
  # Create a Gradio interface
155
  iface = gr.Interface(
156
  fn=chatbot_interface,
@@ -159,7 +155,6 @@ iface = gr.Interface(
159
  description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
160
  allow_flagging = False
161
  )
162
- # Override the default "Clear" button behavior
163
- iface.interface.interface_type.update(clear_chat_history=clear_chat_history)
164
  #Demo for the chatbot
165
  iface.launch(inline = False)
 
147
 
148
  return response, chat_history_text
149
 
 
 
 
 
150
  # Create a Gradio interface
151
  iface = gr.Interface(
152
  fn=chatbot_interface,
 
155
  description="## Question Answering system\n\nIt supports **English** and **Bahasa Malaysia**.",
156
  allow_flagging = False
157
  )
158
+
 
159
  #Demo for the chatbot
160
  iface.launch(inline = False)