Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -239,7 +239,7 @@ def generate_text(df, country, theme):
|
|
239 |
|
240 |
|
241 |
# Generate the descriptive text using the model
|
242 |
-
result = table_to_text(prompt, max_length=200
|
243 |
|
244 |
return result
|
245 |
# Global variable
|
|
|
239 |
|
240 |
|
241 |
# Generate the descriptive text using the model
|
242 |
+
result = table_to_text(prompt, max_length=200)[0]['generated_text']
|
243 |
|
244 |
return result
|
245 |
# Global variable
|