Cachoups commited on
Commit
43eecac
·
verified ·
1 Parent(s): a0c1179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -207,14 +207,15 @@ def generate_text(df, country, theme):
207
  # Create the prompt
208
  prompt = f"""
209
  Here is an example of how to summarize data for France:
210
- Adverse 2020: -0.427975
211
- Adverse 2021: -1.987167
212
- Adverse 2022: -1.195906
213
- Adverse Cumulative: -3.573762
 
214
 
215
  The theme is GDP.
216
  Output:
217
- In adverse scenario, the growth for GDP in France is -0.427975% in 2020, -1.987167% in 2021, and -1.195906% in 2022.
218
 
219
  Now summarize the adverse scenario growth for {theme} in {country} based on the data below:
220
  {row_str}
 
207
  # Create the prompt
208
  prompt = f"""
209
  Here is an example of how to summarize data for France:
210
+ Country France
211
+ Adverse 2020 -0.427975
212
+ Adverse 2021 -1.987167
213
+ Adverse 2022 -1.195906
214
+ Adverse Cumulative -3.573762
215
 
216
  The theme is GDP.
217
  Output:
218
+ In adverse scenario, the growth for GDP in France is -0.427975% in 2020, -1.987167% in 2021, and -1.195906% in 2022 which is an adverse cumulative of -3.573762%.
219
 
220
  Now summarize the adverse scenario growth for {theme} in {country} based on the data below:
221
  {row_str}