I use Anaconda prompt, which (as far as I figured) is windows command promp but on Anaconda (sorry for the vagueness) . After it says starting web server, nothing happends: the window doesnt close and ther is no output whatsoever on it. Will do what you say with fastapi and report back soon (I honestly need to get my laundry )
In the meantime. I just changed the port to 9999 (sine I remeber some localhost port issue from before). Now The following is printed:
Starting the web server at http://localhost:9999 ...
Open the app in your browser and start annotating!
21:11:17 - GET: /project
21:11:17 - POST: /get_session_questions
21:11:17 - FEED: Finding next batch of questions in stream
21:11:17 - CONTROLLER: Validating the first batch for session: my_set-default
21:11:17 - PREPROCESS: Splitting sentences
21:11:17 - FILTER: Filtering duplicates from stream
21:11:17 - FILTER: Filtering out empty examples for key 'text'
Exception when serving /get_session_questions
Traceback (most recent call last):
File "C:\Users\sara\Anaconda3\lib\site-packages\waitress\channel.py", line 336, in service
task.service()
File "C:\Users\sara\Anaconda3\lib\site-packages\waitress\task.py", line 175, in service
self.execute()
File "C:\Users\sara\Anaconda3\lib\site-packages\waitress\task.py", line 452, in execute
app_iter = self.channel.server.application(env, start_response)
File "C:\Users\sara\Anaconda3\lib\site-packages\hug\api.py", line 451, in api_auto_instantiate
return module.hug_wsgi(*args, **kwargs)
File "C:\Users\sara\Anaconda3\lib\site-packages\falcon\api.py", line 244, in call
responder(req, resp, **params)
File "C:\Users\sara\Anaconda3\lib\site-packages\hug\interface.py", line 789, in call
raise exception
File "C:\Users\sara\Anaconda3\lib\site-packages\hug\interface.py", line 762, in call
self.render_content(self.call_function(input_parameters), context, request, response, **kwargs)
File "C:\Users\sara\Anaconda3\lib\site-packages\hug\interface.py", line 698, in call_function
return self.interface(**parameters)
File "C:\Users\sara\Anaconda3\lib\site-packages\hug\interface.py", line 100, in call
return __hug_internal_self._function(*args, **kwargs)
File "C:\Users\sara\Anaconda3\lib\site-packages\prodigy_api\hug_app.py", line 228, in get_session_questions
tasks = controller.get_questions(session_id=session_id)
File "cython_src\prodigy\core.pyx", line 130, in prodigy.core.Controller.get_questions
File "cython_src\prodigy\components\feeds.pyx", line 58, in prodigy.components.feeds.SharedFeed.get_questions
File "cython_src\prodigy\components\feeds.pyx", line 63, in prodigy.components.feeds.SharedFeed.get_next_batch
File "cython_src\prodigy\components\feeds.pyx", line 140, in prodigy.components.feeds.SessionFeed.get_session_stream
File "C:\Users\sara\Anaconda3\lib\site-packages\toolz\itertoolz.py", line 376, in first
return next(iter(seq))
File "cython_src\prodigy\components\sorters.pyx", line 151, in iter
File "cython_src\prodigy\components\sorters.pyx", line 61, in genexpr
File "cython_src\prodigy\models\ner.pyx", line 292, in call
File "cython_src\prodigy\models\ner.pyx", line 261, in get_tasks
File "C:\Users\sara\Anaconda3\lib\site-packages\toolz\itertoolz.py", line 726, in partition_all
prev = next(it)
File "cython_src\prodigy\models\ner.pyx", line 211, in predict_spans
File "C:\Users\sara\Anaconda3\lib\site-packages\toolz\itertoolz.py", line 726, in partition_all
prev = next(it)
File "cython_src\prodigy\components\preprocess.pyx", line 39, in split_sentences
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\language.py", line 723, in pipe
for doc, context in izip(docs, contexts):
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\language.py", line 751, in pipe
for doc in docs:
File "nn_parser.pyx", line 221, in pipe
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\util.py", line 463, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "nn_parser.pyx", line 221, in pipe
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\util.py", line 463, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "pipes.pyx", line 397, in pipe
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\util.py", line 463, in minibatch
batch = list(itertools.islice(items, int(batch_size)))
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\language.py", line 954, in _pipe
for doc in docs:
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\language.py", line 726, in
docs = (self.make_doc(text) for text in texts)
File "C:\Users\sara\Anaconda3\lib\site-packages\spacy\language.py", line 715, in
texts = (tc[0] for tc in text_context1)
File "cython_src\prodigy\components\preprocess.pyx", line 38, in genexpr
File "cython_src\prodigy\components\filters.pyx", line 35, in filter_duplicates
File "cython_src\prodigy\components\filters.pyx", line 16, in filter_empty
File "cython_src\prodigy\components\loaders.pyx", line 22, in _rehash_stream
File "cython_src\prodigy\components\loaders.pyx", line 142, in JSONL
File "C:\Users\sara\Anaconda3\lib\pathlib.py", line 1183, in open
opener=self._opener)
File "C:\Users\sara\Anaconda3\lib\pathlib.py", line 1037, in _opener
return self._accessor.open(self, flags, mode)
File "C:\Users\sara\Anaconda3\lib\pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [Errno 2] No such file or directory: 'news_headlines.jsonl'