acecalisto3 commited on
Commit
702dc0c
·
verified ·
1 Parent(s): b95d0fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -101,9 +101,8 @@ def respond(
101
  return assistant_response
102
 
103
  class MyChatbot(gr.ChatInterface):
104
- def __init__(self, respond, *args, **kwargs):
105
- super().__init__(*args, **kwargs)
106
- self.respond = respond
107
 
108
  def update_chat_history(self, message: str, is_user: bool) -> None:
109
  if is_user:
 
101
  return assistant_response
102
 
103
  class MyChatbot(gr.ChatInterface):
104
+ def __init__(self, fn, *args, **kwargs):
105
+ super().__init__(fn, *args, **kwargs)
 
106
 
107
  def update_chat_history(self, message: str, is_user: bool) -> None:
108
  if is_user: