Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,9 @@ def generate_response(input_text):
|
|
| 38 |
#st.write({"source1":json1["source"], "source2":json2["source"],"source3":json3["source"]})
|
| 39 |
|
| 40 |
|
| 41 |
-
climate_TEMPLATE = """ You are ChatClimate, take a deep breath and
|
| 42 |
-
|
|
|
|
| 43 |
Context: {context}
|
| 44 |
|
| 45 |
Question: {question}
|
|
@@ -57,6 +58,7 @@ def generate_response(input_text):
|
|
| 57 |
[{source5} page {page5}](https://www.ipcc.ch/report/ar6/wg3/downloads/report/{source5}.pdf#page={page5})
|
| 58 |
|
| 59 |
|
|
|
|
| 60 |
|
| 61 |
at the end of your answer, make sure to add a short highlight of your answer in humor and make sure no more than 5 words.
|
| 62 |
|
|
|
|
| 38 |
#st.write({"source1":json1["source"], "source2":json2["source"],"source3":json3["source"]})
|
| 39 |
|
| 40 |
|
| 41 |
+
climate_TEMPLATE = """ You are ChatClimate, take a deep breath and use the following pieces of context to provide an answer for general audience. Format your answer in Markdown:"
|
| 42 |
+
|
| 43 |
+
|
| 44 |
Context: {context}
|
| 45 |
|
| 46 |
Question: {question}
|
|
|
|
| 58 |
[{source5} page {page5}](https://www.ipcc.ch/report/ar6/wg3/downloads/report/{source5}.pdf#page={page5})
|
| 59 |
|
| 60 |
|
| 61 |
+
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
| 62 |
|
| 63 |
at the end of your answer, make sure to add a short highlight of your answer in humor and make sure no more than 5 words.
|
| 64 |
|