Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files722 unmodified lines723724725726726727728729730729730731732732733734735943 unmodified lines1679168016811682168316841685168616871688722 unmodified lines else: text = ""
if len(text) > 8000: if len(text) > 4800: disc_match = re.search(r"(?i)\bdiscography\b", text) if disc_match: start_pos = max(0, disc_match.start() - 400) text = text[:2500] + "\n...\n" + text[start_pos : start_pos + 5500] start_pos = max(0, disc_match.start() - 300) text = text[:1200] + "\n...\n" + text[start_pos : start_pos + 3600] else: text = text[:4000] + "\n...\n" + text[-4000:] text = text[:2400] + "\n...\n" + text[-2400:]
header_info = f"Title: {resolved_title}" if rev_id:943 unmodified lines from concurrent.futures import ThreadPoolExecutor, TimeoutError as FutureTimeoutError import time
if getattr(self, "_last_llm_error", None) is not None: raise self._last_llm_error
litellm.suppress_debug_info = True t0 = time.monotonic() call_kwargs = self._prepare_call_kwargs(dict(kwargs)) call_kwargs["num_retries"] = 0app.py+8-4