Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -240,11 +240,11 @@ def generate_text(df, country, theme):
|
|
240 |
Description:
|
241 |
In the adverse scenario, the GDP growth in Australia was -0.43% in 1990. It decreased further to -1.99% in 1991, showing worsening conditions. There was a slight improvement to -1.20% in 1992. The total cumulative adverse growth is -3.57%.
|
242 |
|
243 |
-
Now, using the following data for {theme} in {country}:
|
244 |
{row_str}
|
245 |
Topic: {theme}
|
246 |
|
247 |
-
Describe using the similar pattern from the example the changes for the provided country and years. Highlight how the values change year by year and whether they increased or decreased. Do not mention any other countries or years, and describe exactly what is in the table. Keep the description simple and direct.
|
248 |
"""
|
249 |
prompt1 = f"""
|
250 |
Here is an example of how to describe adverse growth data for a given country:
|
|
|
240 |
Description:
|
241 |
In the adverse scenario, the GDP growth in Australia was -0.43% in 1990. It decreased further to -1.99% in 1991, showing worsening conditions. There was a slight improvement to -1.20% in 1992. 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 |
|
247 |
+
Describe, using the similar pattern from the example, the changes for the provided country and years. Highlight how the values change year by year and whether they increased or decreased. Do not mention any other countries or years, and describe exactly what is in the table. Keep the description simple and direct.
|
248 |
"""
|
249 |
prompt1 = f"""
|
250 |
Here is an example of how to describe adverse growth data for a given country:
|