Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -333,7 +333,7 @@ def generate_text(df, country, theme):
|
|
333 |
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.
|
334 |
"""
|
335 |
prompt = f"""
|
336 |
-
Here is an example of how to describe adverse growth data for a given country:
|
337 |
|
338 |
Country: Australia
|
339 |
Adverse 1990: -0.43%
|
@@ -342,10 +342,10 @@ def generate_text(df, country, theme):
|
|
342 |
Adverse Cumulative: -3.57%
|
343 |
Topic: GDP
|
344 |
|
345 |
-
|
346 |
In the adverse scenario, the GDP growth in Australia was -0.43% in 1990. It worsened to -1.99% in 1991 and slightly improved to -1.20% in 1992. The total cumulative adverse growth was -3.57%.
|
347 |
|
348 |
-
Now, using the following data for {theme} in {country}, describe the adverse growth:
|
349 |
{row_str}
|
350 |
Topic: {theme}
|
351 |
|
|
|
333 |
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.
|
334 |
"""
|
335 |
prompt = f"""
|
336 |
+
Here is an example of how to describe adverse growth data table for a given country:
|
337 |
|
338 |
Country: Australia
|
339 |
Adverse 1990: -0.43%
|
|
|
342 |
Adverse Cumulative: -3.57%
|
343 |
Topic: GDP
|
344 |
|
345 |
+
Here is the description:
|
346 |
In the adverse scenario, the GDP growth in Australia was -0.43% in 1990. It worsened to -1.99% in 1991 and slightly improved to -1.20% in 1992. The total cumulative adverse growth was -3.57%.
|
347 |
|
348 |
+
Now, using the following data table for {theme} in {country}, describe the adverse growth:
|
349 |
{row_str}
|
350 |
Topic: {theme}
|
351 |
|