Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,6 @@ text.append(user_input) if user_input else text.append(text) # Prioritize user
|
|
35 |
|
36 |
def generate_text(model, input_texts, max_length=500, print_time_taken=False):
|
37 |
# Convert input_texts to a list if it's a Dataset
|
38 |
-
input_texts = input_texts.to_list()
|
39 |
chunks = [input_texts[i:i+512] for i in range(0, len(input_texts), 512)]
|
40 |
#initialize an empty list to store summaries
|
41 |
summaries = []
|
|
|
35 |
|
36 |
def generate_text(model, input_texts, max_length=500, print_time_taken=False):
|
37 |
# Convert input_texts to a list if it's a Dataset
|
|
|
38 |
chunks = [input_texts[i:i+512] for i in range(0, len(input_texts), 512)]
|
39 |
#initialize an empty list to store summaries
|
40 |
summaries = []
|