Yaron Koresh commited on
Commit
311351e
·
verified ·
1 Parent(s): 0f96918

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -585,7 +585,7 @@ def _summarize(text):
585
  log(f'RET _summarize with ret as {ret}')
586
  return ret
587
 
588
- def summarize(text, max_words=8):
589
  log(f'CALL summarize')
590
 
591
  words = text.split()
@@ -1263,7 +1263,7 @@ def translate(txt,to_lang="en",from_lang="auto"):
1263
  log(f'RET translate with translation as {translation}')
1264
  return translation.lower()
1265
 
1266
- @spaces.GPU(duration=100)
1267
  def handle_generation(h,w,d):
1268
 
1269
  log(f'CALL handle_generate')
 
585
  log(f'RET _summarize with ret as {ret}')
586
  return ret
587
 
588
+ def summarize(text, max_words=20):
589
  log(f'CALL summarize')
590
 
591
  words = text.split()
 
1263
  log(f'RET translate with translation as {translation}')
1264
  return translation.lower()
1265
 
1266
+ @spaces.GPU(duration=180)
1267
  def handle_generation(h,w,d):
1268
 
1269
  log(f'CALL handle_generate')