Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -205,27 +205,10 @@ def generate_text(df, country, theme):
|
|
205 |
row_str = row.to_string(index=True)
|
206 |
|
207 |
prompt = f"""
|
208 |
-
Here is
|
209 |
-
|
210 |
-
Example for France (GDP):
|
211 |
-
Country: France
|
212 |
-
Adverse 2020: -0.427975
|
213 |
-
Adverse 2021: -1.987167
|
214 |
-
Adverse 2022: -1.195906
|
215 |
-
Adverse Cumulative: -3.573762
|
216 |
-
|
217 |
-
The topic is GDP.
|
218 |
-
Summary:
|
219 |
-
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%.
|
220 |
-
|
221 |
-
Now, use the following data for {theme} in {country} to generate a similar summary:
|
222 |
{row_str}
|
223 |
|
224 |
-
|
225 |
-
- Reflects the theme accurately
|
226 |
-
- Highlights any improvements or worsening compared to previous years
|
227 |
-
- Includes a cumulative result if applicable
|
228 |
-
- Uses terms 'increase' and 'decrease' to describe changes
|
229 |
"""
|
230 |
|
231 |
|
|
|
205 |
row_str = row.to_string(index=True)
|
206 |
|
207 |
prompt = f"""
|
208 |
+
Here is the data for {theme} in {country}:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
{row_str}
|
210 |
|
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 |
|
214 |
|