Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -291,7 +291,7 @@ def generate_text(df, country, theme):
|
|
291 |
"""
|
292 |
|
293 |
# Generate the descriptive text using the model
|
294 |
-
result = table_to_text(prompt, max_length=240, temperature = 0.7, top_p = 0.3, do_sample =
|
295 |
|
296 |
return result
|
297 |
# Global variable
|
|
|
291 |
"""
|
292 |
|
293 |
# Generate the descriptive text using the model
|
294 |
+
result = table_to_text(prompt, max_length=240, temperature = 0.7, top_p = 0.3, do_sample = False)[0]['generated_text']
|
295 |
|
296 |
return result
|
297 |
# Global variable
|