Cachoups commited on
Commit
738546b
·
verified ·
1 Parent(s): 157255c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -271,7 +271,7 @@ def generate_text(df, country, theme):
271
  """
272
 
273
  # Generate the descriptive text using the model
274
- result = table_to_text(prompt, max_length=248)[0]['generated_text']
275
 
276
  return result
277
  # Global variable
 
271
  """
272
 
273
  # Generate the descriptive text using the model
274
+ result = table_to_text(prompt, max_length=248, temperature = 0.7, top_p = 0.9, do_sample = True)[0]['generated_text']
275
 
276
  return result
277
  # Global variable