Update app.py
Browse files
app.py
CHANGED
@@ -505,11 +505,11 @@ class BOUESTIChatbot:
|
|
505 |
return history, ""
|
506 |
|
507 |
def gradio_chat(self, message, history):
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
|
514 |
def create_gradio_interface(self):
|
515 |
"""Create Gradio interface with proper event binding"""
|
|
|
505 |
return history, ""
|
506 |
|
507 |
def gradio_chat(self, message, history):
|
508 |
+
"""Gradio chat interface function"""
|
509 |
+
if not message.strip():
|
510 |
+
return history, ""
|
511 |
+
response = self.generate_response(message)
|
512 |
+
return history + [[message, response]], ""
|
513 |
|
514 |
def create_gradio_interface(self):
|
515 |
"""Create Gradio interface with proper event binding"""
|