Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -214,7 +214,7 @@ def generate_text(df, country, theme):
|
|
214 |
Summarize the adverse growth for {theme} in {country}. Highlight any increase or decrease compared to previous years and include the cumulative result.
|
215 |
"""
|
216 |
prompt = f"""
|
217 |
-
Here are two examples of how to
|
218 |
|
219 |
Example 1 (Australia - GDP):
|
220 |
Country: Australia
|
@@ -232,7 +232,7 @@ def generate_text(df, country, theme):
|
|
232 |
Example 2 ({country} - {theme}):
|
233 |
{row_str}
|
234 |
|
235 |
-
The topic is {theme}.
|
236 |
"""
|
237 |
|
238 |
|
|
|
214 |
Summarize the adverse growth for {theme} in {country}. Highlight any increase or decrease compared to previous years and include the cumulative result.
|
215 |
"""
|
216 |
prompt = f"""
|
217 |
+
Here are two examples of how to explain adverse growth data for a given country:
|
218 |
|
219 |
Example 1 (Australia - GDP):
|
220 |
Country: Australia
|
|
|
232 |
Example 2 ({country} - {theme}):
|
233 |
{row_str}
|
234 |
|
235 |
+
The topic is {theme}. Explain the data, ensuring that the description reflects the theme accurately. Follow the pattern of the examples provided and describe any changes in values using terms like 'increase' and 'decrease'. Make sure the output aligns with the data.
|
236 |
"""
|
237 |
|
238 |
|