Update app.py
Browse files
app.py
CHANGED
|
@@ -108,21 +108,12 @@ def query_model(question):
|
|
| 108 |
|
| 109 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 110 |
welcome_message = """
|
| 111 |
-
# ♟️ Welcome to
|
| 112 |
|
| 113 |
-
## Your AI-driven assistant for all
|
| 114 |
"""
|
| 115 |
|
| 116 |
topics = """
|
| 117 |
-
### Feel Free to ask me anything from the topics below!
|
| 118 |
-
- Chess piece movements
|
| 119 |
-
- Special moves
|
| 120 |
-
- Game phases
|
| 121 |
-
- Common strategies
|
| 122 |
-
- Chess terminology
|
| 123 |
-
- Famous games
|
| 124 |
-
- Chess tactics
|
| 125 |
-
"""
|
| 126 |
|
| 127 |
# Setup the Gradio Blocks interface with custom layout components
|
| 128 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
@@ -133,7 +124,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
| 133 |
with gr.Row():
|
| 134 |
with gr.Column():
|
| 135 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
| 136 |
-
answer = gr.Textbox(label="
|
| 137 |
submit_button = gr.Button("Submit")
|
| 138 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 139 |
|
|
|
|
| 108 |
|
| 109 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 110 |
welcome_message = """
|
| 111 |
+
# ♟️ Welcome to SheScreen!
|
| 112 |
|
| 113 |
+
## Your AI-driven assistant for all film-related queries. Created by Erin Enriquez, Fiona Beauchamp, and Tamara Landman of the 2024 Kode With Klossy CITY Camp.
|
| 114 |
"""
|
| 115 |
|
| 116 |
topics = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
# Setup the Gradio Blocks interface with custom layout components
|
| 119 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
|
|
| 124 |
with gr.Row():
|
| 125 |
with gr.Column():
|
| 126 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
| 127 |
+
answer = gr.Textbox(label="SheScreen Response", placeholder="SheScreen will respond here...", interactive=False, lines=10)
|
| 128 |
submit_button = gr.Button("Submit")
|
| 129 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 130 |
|