Spaces:
Sleeping
Sleeping
xavierbarbier
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def summarise(text):
|
|
76 |
|
77 |
chunks = [text[i:i + chunk_size] for i in range(0, len(text), chunk_size)]
|
78 |
|
79 |
-
return
|
80 |
|
81 |
with gr.Blocks() as demo:
|
82 |
file_input = gr.File(label="Upload a PDF file")
|
|
|
76 |
|
77 |
chunks = [text[i:i + chunk_size] for i in range(0, len(text), chunk_size)]
|
78 |
|
79 |
+
return len(chunks)
|
80 |
|
81 |
with gr.Blocks() as demo:
|
82 |
file_input = gr.File(label="Upload a PDF file")
|