Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -272,7 +272,7 @@ def generate_text(df, country, theme):
|
|
272 |
"""
|
273 |
|
274 |
# Generate the descriptive text using the model
|
275 |
-
result = table_to_text(prompt, max_length=248)[0]['generated_text']
|
276 |
|
277 |
return result
|
278 |
# Global variable
|
|
|
272 |
"""
|
273 |
|
274 |
# Generate the descriptive text using the model
|
275 |
+
result = table_to_text(prompt, max_length=248, temperature = 0.7, top_p = 0.3)[0]['generated_text']
|
276 |
|
277 |
return result
|
278 |
# Global variable
|