Benedikt Droste Claude Opus 4.5 commited on
Commit ·
50d6a31
1
Parent(s): 6483f14
Adjust limits: GPU 120s, PDF pages 50
Browse filesCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def tag_sentences(text: str, lang_code: str) -> tuple[str, dict[str, str], dict[
|
|
| 125 |
# PDF Processing
|
| 126 |
# ============================================================================
|
| 127 |
|
| 128 |
-
MAX_DEMO_PAGES =
|
| 129 |
|
| 130 |
|
| 131 |
def extract_pdf_text(pdf_path: str) -> tuple[str, dict[int, tuple[int, int]], bool]:
|
|
@@ -323,7 +323,7 @@ Parameters:
|
|
| 323 |
# Summary Generation
|
| 324 |
# ============================================================================
|
| 325 |
|
| 326 |
-
@spaces.GPU(duration=
|
| 327 |
def generate_summary(
|
| 328 |
text: str,
|
| 329 |
lang_code: str,
|
|
|
|
| 125 |
# PDF Processing
|
| 126 |
# ============================================================================
|
| 127 |
|
| 128 |
+
MAX_DEMO_PAGES = 50
|
| 129 |
|
| 130 |
|
| 131 |
def extract_pdf_text(pdf_path: str) -> tuple[str, dict[int, tuple[int, int]], bool]:
|
|
|
|
| 323 |
# Summary Generation
|
| 324 |
# ============================================================================
|
| 325 |
|
| 326 |
+
@spaces.GPU(duration=120)
|
| 327 |
def generate_summary(
|
| 328 |
text: str,
|
| 329 |
lang_code: str,
|