Cachoups commited on
Commit
d42e8e4
·
verified ·
1 Parent(s): 5c847e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -271,8 +271,7 @@ def generate_text(df, country, theme):
271
  Make sure your description follows the example format and accurately reflects the data.
272
  """
273
 
274
- prompt =
275
- f"""
276
  <thinking>
277
  You are given data on adverse growth for a specific country and topic. Your task is to describe the data in a clear and accurate manner, following the example provided. Reflect on how the values change from year to year, and analyze whether there is an increase or decrease compared to previous years. Consider if these changes indicate a worsening or improvement and specify if the change is strong or slight. Include the cumulative result and ensure your description aligns with the given example format.
278
  </thinking>
@@ -301,7 +300,7 @@ def generate_text(df, country, theme):
301
  Topic: {theme}
302
  Make sure your description follows the example format and accurately reflects the data.
303
  </output>
304
- """
305
 
306
  # Generate the descriptive text using the model
307
  result = table_to_text(prompt, max_length=248)[0]['generated_text']
 
271
  Make sure your description follows the example format and accurately reflects the data.
272
  """
273
 
274
+ prompt = f"""
 
275
  <thinking>
276
  You are given data on adverse growth for a specific country and topic. Your task is to describe the data in a clear and accurate manner, following the example provided. Reflect on how the values change from year to year, and analyze whether there is an increase or decrease compared to previous years. Consider if these changes indicate a worsening or improvement and specify if the change is strong or slight. Include the cumulative result and ensure your description aligns with the given example format.
277
  </thinking>
 
300
  Topic: {theme}
301
  Make sure your description follows the example format and accurately reflects the data.
302
  </output>
303
+ """
304
 
305
  # Generate the descriptive text using the model
306
  result = table_to_text(prompt, max_length=248)[0]['generated_text']