Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def find_relevant_segment(user_query, segments):
|
|
| 64 |
|
| 65 |
def generate_response(user_query, relevant_segment):
|
| 66 |
"""
|
| 67 |
-
Generate a response emphasizing the bot's capability in providing
|
| 68 |
"""
|
| 69 |
try:
|
| 70 |
user_message = f"Here's the information on your workout: {relevant_segment}"
|
|
@@ -135,7 +135,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
| 135 |
with gr.Row():
|
| 136 |
with gr.Column():
|
| 137 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
| 138 |
-
answer = gr.Textbox(label="
|
| 139 |
submit_button = gr.Button("Submit")
|
| 140 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 141 |
|
|
|
|
| 64 |
|
| 65 |
def generate_response(user_query, relevant_segment):
|
| 66 |
"""
|
| 67 |
+
Generate a response emphasizing the bot's capability in providing exercise information.
|
| 68 |
"""
|
| 69 |
try:
|
| 70 |
user_message = f"Here's the information on your workout: {relevant_segment}"
|
|
|
|
| 135 |
with gr.Row():
|
| 136 |
with gr.Column():
|
| 137 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
| 138 |
+
answer = gr.Textbox(label="activeIntelligence Response", placeholder="activeIntelligence will respond here...", interactive=False, lines=10)
|
| 139 |
submit_button = gr.Button("Submit")
|
| 140 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 141 |
|