Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -349,6 +349,8 @@ def generate_text(df, country, theme):
|
|
| 349 |
|
| 350 |
Now, using the following data in {country}, describe and provibe how the adverse growth changed each year, whether it increased or decreased, worsened or improved:
|
| 351 |
{row_str}
|
|
|
|
|
|
|
| 352 |
"""
|
| 353 |
prompt1 = f"""
|
| 354 |
Given the following adverse growth data for {theme} in {country}:
|
|
@@ -369,7 +371,7 @@ def generate_text(df, country, theme):
|
|
| 369 |
Description:
|
| 370 |
In Australia, GDP growth was -0.43% in 1990. It worsened to -1.99% in 1991 and improved to -1.20% in 1992. The total cumulative adverse growth was -3.57%.
|
| 371 |
|
| 372 |
-
Now, describe the data for {country}
|
| 373 |
"""
|
| 374 |
print(year)
|
| 375 |
# Generate the descriptive text using the model
|
|
|
|
| 349 |
|
| 350 |
Now, using the following data in {country}, describe and provibe how the adverse growth changed each year, whether it increased or decreased, worsened or improved:
|
| 351 |
{row_str}
|
| 352 |
+
|
| 353 |
+
Answer:
|
| 354 |
"""
|
| 355 |
prompt1 = f"""
|
| 356 |
Given the following adverse growth data for {theme} in {country}:
|
|
|
|
| 371 |
Description:
|
| 372 |
In Australia, GDP growth was -0.43% in 1990. It worsened to -1.99% in 1991 and improved to -1.20% in 1992. The total cumulative adverse growth was -3.57%.
|
| 373 |
|
| 374 |
+
Now, describe the data for {country}
|
| 375 |
"""
|
| 376 |
print(year)
|
| 377 |
# Generate the descriptive text using the model
|