Awell00 commited on
Commit
2f8e19b
·
verified ·
1 Parent(s): 4a5eb27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)