Spaces:
Runtime error
Runtime error
Paras Sharma
commited on
Commit
·
7c14273
1
Parent(s):
5fab2dd
improve formatting and instructions for CSV Chatbot questions
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def csv_qa(question, feedback="None"):
|
|
| 40 |
answer_prompt = """
|
| 41 |
Given the solution data below. Write the answer to the question like a good chatbot.
|
| 42 |
|
| 43 |
-
Format the output in a human readable way. Use markdown to format the output.
|
| 44 |
|
| 45 |
Original Question: {question}
|
| 46 |
Solution:
|
|
@@ -116,6 +116,7 @@ with gr.Blocks(fill_height=True) as app:
|
|
| 116 |
examples=[
|
| 117 |
"What is the total value of the holdings?",
|
| 118 |
"What is the total profit or loss (PL_YTD) for a Garfield in the holdings data?",
|
|
|
|
| 119 |
],
|
| 120 |
)
|
| 121 |
|
|
|
|
| 40 |
answer_prompt = """
|
| 41 |
Given the solution data below. Write the answer to the question like a good chatbot.
|
| 42 |
|
| 43 |
+
Format the output in a human readable way. Use markdown to format the output. Use currency symbols and percentages where applicable. Be descriptive in your answers.
|
| 44 |
|
| 45 |
Original Question: {question}
|
| 46 |
Solution:
|
|
|
|
| 116 |
examples=[
|
| 117 |
"What is the total value of the holdings?",
|
| 118 |
"What is the total profit or loss (PL_YTD) for a Garfield in the holdings data?",
|
| 119 |
+
"What type of question can I ask?",
|
| 120 |
],
|
| 121 |
)
|
| 122 |
|