Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -213,13 +213,13 @@ def generate_text(df, country, theme):
|
|
213 |
prompt = f"""
|
214 |
Here is an example of how to summarize adverse growth data with GDP as the topic:
|
215 |
|
216 |
-
Country:
|
217 |
Adverse 2020: -0.427975
|
218 |
Adverse 2021: -1.987167
|
219 |
Adverse 2022: -1.195906
|
220 |
Adverse Cumulative: -3.573762
|
221 |
Summary:
|
222 |
-
In the adverse scenario, the GDP growth for
|
223 |
s -0.
|
224 |
Now summarize the adverse scenario growth for {theme} as the topic using the following data:
|
225 |
{row_str}
|
|
|
213 |
prompt = f"""
|
214 |
Here is an example of how to summarize adverse growth data with GDP as the topic:
|
215 |
|
216 |
+
Country: Australia
|
217 |
Adverse 2020: -0.427975
|
218 |
Adverse 2021: -1.987167
|
219 |
Adverse 2022: -1.195906
|
220 |
Adverse Cumulative: -3.573762
|
221 |
Summary:
|
222 |
+
In the adverse scenario, the GDP growth for Australia was -0.427975% in 2020. The growth worsened to -1.987167% in 2021, then slightly improved to -1.195906% in 2022. The cumulative adverse growth is -3.573762%.
|
223 |
s -0.
|
224 |
Now summarize the adverse scenario growth for {theme} as the topic using the following data:
|
225 |
{row_str}
|