You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server error: `POST http://nlp:6400/gensim/summarize` resulted in a `500 INTERNAL SERVER ERROR` response: <!doctype html>
<html lang=en> <title>500 Internal Server Error</title> <h1>Internal Server Error</h1> <p>The server enc (truncated...)
After I logged into the container I found a log file where I see this:
[2023-01-01 19:03:27,758] ERROR in app: Exception on /gensim/summarize [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/src/nlpserver/nlpserver.py", line 144, in gensim_summarize
from gensim.summarization.summarizer import summarize
ModuleNotFoundError: No module named 'gensim.summarization'
172.19.0.7 - - [01/Jan/2023 19:03:27] "POST /gensim/summarize HTTP/1.1" 500 -
I don't know how to fix python code, so please help me to start the server!
Thank you!
The text was updated successfully, but these errors were encountered:
I try to use nlpserver in Docker, with this docker-compose.yml:
This is the content of
./.docker-config/dockerfiles/nlpserver.dockerfile
(I just made some small changes, because the original Dockerfile doesn't run)This is the nlpserver.conf (not changed):
This is the entrypoint.sh (not changed):
I made my custom
NlpClient
class in my Laravel app:...and add a service class with this function:
Finally I try to use this service like this:
And the server said:
After I logged into the container I found a log file where I see this:
I don't know how to fix python code, so please help me to start the server!
Thank you!
The text was updated successfully, but these errors were encountered: