Update app.py
Browse files
app.py
CHANGED
@@ -96,21 +96,19 @@ def query_model(question):
|
|
96 |
return response
|
97 |
|
98 |
# Define the welcome message and specific topics the chatbot can provide information about
|
99 |
-
welcome_message = ""
|
100 |
-
#
|
101 |
|
102 |
-
## Your AI-driven assistant for all chess-related queries. Created by
|
103 |
"""
|
104 |
|
105 |
topics = """
|
106 |
### Feel Free to ask me anything from the topics below!
|
107 |
-
-
|
108 |
-
-
|
109 |
-
-
|
110 |
-
-
|
111 |
-
-
|
112 |
-
- Famous games
|
113 |
-
- Chess tactics
|
114 |
"""
|
115 |
|
116 |
# Setup the Gradio Blocks interface with custom layout components
|
@@ -122,7 +120,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
122 |
with gr.Row():
|
123 |
with gr.Column():
|
124 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
125 |
-
answer = gr.Textbox(label="ChessBot Response", placeholder="
|
126 |
submit_button = gr.Button("Submit")
|
127 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
128 |
|
|
|
96 |
return response
|
97 |
|
98 |
# Define the welcome message and specific topics the chatbot can provide information about
|
99 |
+
welcome_message = "Welcome to Blossom Buddy! My name's Rose."
|
100 |
+
#
|
101 |
|
102 |
+
## Your AI-driven assistant for all chess-related queries. Created by Lila, Harper, and Mara of the 2024 Kode With Klossy AI/ML Camp.
|
103 |
"""
|
104 |
|
105 |
topics = """
|
106 |
### Feel Free to ask me anything from the topics below!
|
107 |
+
- Menstruation
|
108 |
+
- Period Products
|
109 |
+
- Hygeine
|
110 |
+
- Puberty
|
111 |
+
- Sustainability
|
|
|
|
|
112 |
"""
|
113 |
|
114 |
# Setup the Gradio Blocks interface with custom layout components
|
|
|
120 |
with gr.Row():
|
121 |
with gr.Column():
|
122 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
123 |
+
answer = gr.Textbox(label="ChessBot Response", placeholder="Rose will respond here...", interactive=False, lines=10)
|
124 |
submit_button = gr.Button("Submit")
|
125 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
126 |
|