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