Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def generate_response(selected_question):
|
|
63 |
#print(f"Error during topic analysis: {e}")
|
64 |
|
65 |
# Adjusted to return a list of tuples as expected by the Chatbot component
|
66 |
-
new_response = (response + "\n\nTopics: " + topics_str)
|
67 |
chat_history.append(new_response)
|
68 |
|
69 |
|
@@ -72,8 +72,8 @@ def generate_response(selected_question):
|
|
72 |
with gr.Blocks() as demo:
|
73 |
gr.Markdown(
|
74 |
"""
|
75 |
-
#
|
76 |
-
|
77 |
""")
|
78 |
|
79 |
chatbot = gr.Chatbot(
|
|
|
63 |
#print(f"Error during topic analysis: {e}")
|
64 |
|
65 |
# Adjusted to return a list of tuples as expected by the Chatbot component
|
66 |
+
new_response = (None, response + "\n\nTopics: " + topics_str)
|
67 |
chat_history.append(new_response)
|
68 |
|
69 |
|
|
|
72 |
with gr.Blocks() as demo:
|
73 |
gr.Markdown(
|
74 |
"""
|
75 |
+
# Child safe chatbot project !
|
76 |
+
In the realm of digital communication, the development of an advanced chatbot that incorporates topic modeling represents a significant leap towards enhancing user interaction and maintaining focus during conversations. This innovative chatbot design is specifically engineered to streamline discussions by guiding users to select from a curated list of suggested questions. This approach is crafted to mitigate the risk of diverging into off-topic dialogues, which are common pitfalls in conventional chatbot systems.
|
77 |
""")
|
78 |
|
79 |
chatbot = gr.Chatbot(
|