Spaces:
Running
Running
Update app.py
Browse files
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
|