Cachoups commited on
Commit
913d944
·
verified ·
1 Parent(s): c6b10c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -211,7 +211,7 @@ def generate_text(df, country, theme):
211
  Summarize the adverse growth for {theme} in {country}. Highlight any increase or decrease compared to previous years and include the cumulative result.
212
  """
213
  prompt = f"""
214
- Here is an example of how to summarize adverse growth data for a given country with GDP as the theme:
215
 
216
  Example for France (GDP):
217
  Country: France
@@ -219,12 +219,11 @@ def generate_text(df, country, theme):
219
  Adverse 2021: -1.987167
220
  Adverse 2022: -1.195906
221
  Adverse Cumulative: -3.573762
222
-
223
- The theme is GDP.
224
  Summary:
225
  In the adverse scenario, the growth for GDP in France decreased by -0.427975% in 2020, worsened further by -1.987167% in 2021, and slightly improved by -1.195906% in 2022. The cumulative adverse growth is -3.573762%.
226
 
227
- Now, summarize the data for {theme} in {country}:
228
  {row_str}
229
 
230
  Make sure to highlight changes compared to previous years, include the cumulative result if applicable and use 'increase' or 'decrease' to describe changes.
 
211
  Summarize the adverse growth for {theme} in {country}. Highlight any increase or decrease compared to previous years and include the cumulative result.
212
  """
213
  prompt = f"""
214
+ Here is an example of how to summarize adverse growth data for a given country with GDP as the topic:
215
 
216
  Example for France (GDP):
217
  Country: France
 
219
  Adverse 2021: -1.987167
220
  Adverse 2022: -1.195906
221
  Adverse Cumulative: -3.573762
222
+
 
223
  Summary:
224
  In the adverse scenario, the growth for GDP in France decreased by -0.427975% in 2020, worsened further by -1.987167% in 2021, and slightly improved by -1.195906% in 2022. The cumulative adverse growth is -3.573762%.
225
 
226
+ Now, summarize the data for {theme} as topic in {country}:
227
  {row_str}
228
 
229
  Make sure to highlight changes compared to previous years, include the cumulative result if applicable and use 'increase' or 'decrease' to describe changes.