Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -235,17 +235,17 @@ def generate_text(df, country, theme):
|
|
235 |
Adverse 2021: -1.99%
|
236 |
Adverse 2022: -1.20%
|
237 |
Adverse Cumulative: -3.57%
|
238 |
-
|
239 |
-
|
240 |
Description:
|
241 |
In the adverse scenario, the GDP growth in Australia was -0.43% in 2020. It decreased further to -1.99% in 2021, showing worsening conditions. There was a slight improvement to -1.20% in 2022. The total cumulative adverse growth is -3.57%.
|
242 |
|
243 |
Now, using the following data for {theme} in {country}, describe the adverse growth:
|
244 |
{row_str}
|
245 |
-
|
246 |
-
Describe by highlighting changes between those three years. Accurately describe whether the values increase or decrease, whether it worsened or improved, strongly or slightly,
|
247 |
"""
|
248 |
-
|
249 |
Here is an example of how to describe adverse growth data for a given country:
|
250 |
|
251 |
Country: Australia
|
|
|
235 |
Adverse 2021: -1.99%
|
236 |
Adverse 2022: -1.20%
|
237 |
Adverse Cumulative: -3.57%
|
238 |
+
Topic: GDP
|
239 |
+
|
240 |
Description:
|
241 |
In the adverse scenario, the GDP growth in Australia was -0.43% in 2020. It decreased further to -1.99% in 2021, showing worsening conditions. There was a slight improvement to -1.20% in 2022. The total cumulative adverse growth is -3.57%.
|
242 |
|
243 |
Now, using the following data for {theme} in {country}, describe the adverse growth:
|
244 |
{row_str}
|
245 |
+
Topic: {theme}
|
246 |
+
Describe by highlighting changes between those three years. Accurately describe whether the values increase or decrease, whether it worsened or improved, strongly or slightly, and reflect the data as it appears.
|
247 |
"""
|
248 |
+
prompt1 = f"""
|
249 |
Here is an example of how to describe adverse growth data for a given country:
|
250 |
|
251 |
Country: Australia
|