Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -211,7 +211,7 @@ def generate_text(df, country, theme):
|
|
211 |
Summarize the adverse growth for {theme} in {country}. Highlight any increase or decrease compared to previous years and include the cumulative result.
|
212 |
"""
|
213 |
prompt = f"""
|
214 |
-
Here is an example of how to summarize adverse growth data with GDP as the topic:
|
215 |
|
216 |
Country: Australia
|
217 |
Adverse 2020: -0.427975
|
@@ -221,13 +221,13 @@ def generate_text(df, country, theme):
|
|
221 |
Summary:
|
222 |
In the adverse scenario, the GDP growth for Australia was -0.427975% in 2020. The growth worsened to -1.987167% in 2021, then slightly improved to -1.195906% in 2022. The cumulative adverse growth is -3.573762%.
|
223 |
s -0.
|
224 |
-
Now summarize the adverse scenario growth for {theme} as the topic using the following data:
|
225 |
{row_str}
|
226 |
|
227 |
Instructions:
|
228 |
1. Highlight any improvement or worsening compared to previous years.
|
229 |
2. Include the cumulative result if applicable.
|
230 |
-
3. Ensure the summary reflects the changes in values
|
231 |
"""
|
232 |
|
233 |
|
|
|
211 |
Summarize the adverse growth for {theme} in {country}. Highlight any increase or decrease compared to previous years and include the cumulative result.
|
212 |
"""
|
213 |
prompt = f"""
|
214 |
+
Here is an example of how to summarize adverse growth data with GDP as the topic in Australia:
|
215 |
|
216 |
Country: Australia
|
217 |
Adverse 2020: -0.427975
|
|
|
221 |
Summary:
|
222 |
In the adverse scenario, the GDP growth for Australia was -0.427975% in 2020. The growth worsened to -1.987167% in 2021, then slightly improved to -1.195906% in 2022. The cumulative adverse growth is -3.573762%.
|
223 |
s -0.
|
224 |
+
Now summarize the adverse scenario growth for {theme} as the topic in {country} using the following data:
|
225 |
{row_str}
|
226 |
|
227 |
Instructions:
|
228 |
1. Highlight any improvement or worsening compared to previous years.
|
229 |
2. Include the cumulative result if applicable.
|
230 |
+
3. Ensure the summary reflects the changes in values accurately.
|
231 |
"""
|
232 |
|
233 |
|