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