Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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=
|
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=
|
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')
|