Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -158,6 +158,7 @@ def summarize_chapter(chapter_index):
|
|
158 |
chapter_text += "\n\n"
|
159 |
return chapter_text if chapter_text else "No content found for the selected chapter."
|
160 |
|
|
|
161 |
def generate_summary(text):
|
162 |
try:
|
163 |
client = InferenceClient(api_key=TOKEN)
|
|
|
158 |
chapter_text += "\n\n"
|
159 |
return chapter_text if chapter_text else "No content found for the selected chapter."
|
160 |
|
161 |
+
@spaces.GPU(duration=100)
|
162 |
def generate_summary(text):
|
163 |
try:
|
164 |
client = InferenceClient(api_key=TOKEN)
|