Publication date: Aug 01, 2025
ValueError
ValueError: max() arg is an empty sequence
Traceback (most recent call last)
-
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 1498, in
__call__) -> cabc. Iterable[bytes]:"""The WSGI server calls the Flask application object as theWSGI application. This calls :meth:'wsgi_app', which can bewrapped to apply middleware."""return self. wsgi_app(environ, start_response) -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 1476, in
wsgi_apptry:ctx. push()response = self. full_dispatch_request()except Exception as e:error = eresponse = self. handle_exception(e)except: # noqa: B001error = sys. exc_info()[1]raisereturn response(environ, start_response)finally: -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 1473, in
wsgi_appctx = self. request_context(environ)error: BaseException | None = Nonetry:try:ctx. push()response = self. full_dispatch_request()except Exception as e:error = eresponse = self. handle_exception(e)except: # noqa: B001error = sys. exc_info()[1] -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 882, in
full_dispatch_requestrequest_started. send(self, _async_wrapper=self. ensure_sync)rv = self. preprocess_request()if rv is None:rv = self. dispatch_request()except Exception as e:rv = self. handle_user_exception(e)return self. finalize_request(rv)def finalize_request(self,rv: ft. ResponseReturnValue | HTTPException, -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 880, in
full_dispatch_requesttry:request_started. send(self, _async_wrapper=self. ensure_sync)rv = self. preprocess_request()if rv is None:rv = self. dispatch_request()except Exception as e:rv = self. handle_user_exception(e)return self. finalize_request(rv)def finalize_request( -
File “/usr/local/lib/python3. 9/site-packages/flask/app. py”, line 865, in
dispatch_requestand req. method == "OPTIONS"):return self. make_default_options_response()# otherwise dispatch to the handler for that endpointview_args: dict[str, t. Any] = req. view_args # type: ignore[assignment]return self. ensure_sync(self. view_functions[rule. endpoint])(**view_args) # type: ignore[no-any-return]def full_dispatch_request(self) -> Response:"""Dispatches the request and on top of that performs requestpre and postprocessing as well as HTTP exception catching anderror handling. -
File “/nlpapps/app. py”, line 463, in
process_summarytextsentence_list = nltk. sent_tokenize(article_text)# Find the weighted frequency
maximum_frequncy = max(word_frequencies. values())for word in word_frequencies. keys():word_frequencies[word] = (word_frequencies[word]/maximum_frequncy)# Calculate sentence scores
ValueError: max() arg is an empty sequence
This is the Copy/Paste friendly version of the traceback.
ValueError: max() arg is an empty sequence
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.
Console Locked
The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.
| Concepts | Keywords |
|---|---|
| Covid | Covid |
| Identifying | Identifying |
| Long | Long |
| Symptoms | Symptoms |
| Young | Young |
Semantics
| Type | Source | Name |
|---|---|---|
| disease | MESH | Long COVID |
(Visited 2 times, 1 visits today)