Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -101,9 +101,8 @@ def respond(
|
|
101 |
return assistant_response
|
102 |
|
103 |
class MyChatbot(gr.ChatInterface):
|
104 |
-
def __init__(self,
|
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:
|