Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,20 +97,18 @@ def query_model(question):
|
|
| 97 |
|
| 98 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 99 |
welcome_message = """
|
| 100 |
-
# ♟️ Welcome to
|
| 101 |
|
| 102 |
-
## Your AI-driven assistant for
|
| 103 |
"""
|
| 104 |
|
| 105 |
topics = """
|
| 106 |
-
###
|
| 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="
|
| 126 |
submit_button = gr.Button("Submit")
|
| 127 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 128 |
|
|
|
|
| 97 |
|
| 98 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 99 |
welcome_message = """
|
| 100 |
+
# ♟️ Welcome to Which Workout!
|
| 101 |
|
| 102 |
+
## Your AI-driven assistant for workout and exercise suggestions.
|
| 103 |
"""
|
| 104 |
|
| 105 |
topics = """
|
| 106 |
+
### Ask for ideas about workouts for the following body parts:
|
| 107 |
+
- Arms
|
| 108 |
+
- Legs
|
| 109 |
+
- Core
|
| 110 |
+
- Everything
|
| 111 |
+
- or ask for a surprise!
|
|
|
|
|
|
|
| 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="WhichWorkout Response", placeholder="WhichWorkout 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 |
|