Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ set_seed(42)
|
|
| 10 |
|
| 11 |
# defining the core function
|
| 12 |
def generate(text):
|
| 13 |
-
generator(text, max_length=30, num_return_sequences=1)
|
| 14 |
return result[0]["generated_text"]
|
| 15 |
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
# defining the core function
|
| 12 |
def generate(text):
|
| 13 |
+
result = generator(text, max_length=30, num_return_sequences=1)
|
| 14 |
return result[0]["generated_text"]
|
| 15 |
|
| 16 |
|