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
Hi. Checking this project out and excited to get the API running. I set up a docker instance with the official txtai-cpu container and used the default config.yml from the docs to start the process. Here is the config:
# Index file pathpath: /tmp/index# Allow indexing of documentswritable: True# Enbeddings indexembeddings:
path: sentence-transformers/nli-mpnet-base-v2# Extractive QAextractor:
path: distilbert-base-cased-distilled-squad# Zero-shot labelinglabels:
# Similaritysimilarity:
# Text segmentationsegmentation:
sentences: true# Text summarizationsummary:
# Text extractiontextractor:
paragraphs: trueminlength: 100join: true# Transcribe audio to texttranscription:
# Translate text between languagestranslation:
# Workflow definitionsworkflow:
sumfrench:
tasks:
- action: textractortask: storageids: false
- action: summary
- action: translationargs: ["fr"]sumspanish:
tasks:
- action: textractortask: url
- action: summary
- action: translationargs: ["es"]
I attempt to run the service using this command:
CONFIG=config.yml uvicorn "txtai.api:app"
things appear normal, and models are downloaded from hugginface. After they download I am presented with this error:
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 621, in lifespan
async with self.lifespan_context(app):
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 518, in __aenter__
await self._router.startup()
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 600, in startup
handler()
File "/usr/local/lib/python3.8/dist-packages/txtai/api/application.py", line 67, in start
INSTANCE = Factory.create(config, api) if api else API(config)
File "/usr/local/lib/python3.8/dist-packages/txtai/api/base.py", line 18, in __init__
super().__init__(config, loaddata)
File "/usr/local/lib/python3.8/dist-packages/txtai/app/base.py", line 70, in __init__
self.flows()
File "/usr/local/lib/python3.8/dist-packages/txtai/app/base.py", line 134, in flows
self.workflows[workflow] = WorkflowFactory.create(config, workflow)
File "/usr/local/lib/python3.8/dist-packages/txtai/workflow/factory.py", line 31, in create
tasks.append(TaskFactory.create(tconfig, task))
File "/usr/local/lib/python3.8/dist-packages/txtai/workflow/task/factory.py", line 63, in create
return TaskFactory.get(task)(**config)
File "/usr/local/lib/python3.8/dist-packages/txtai/workflow/task/base.py", line 53, in __init__
self.register(**kwargs)
TypeError: register() got an unexpected keyword argument 'ids'
2022-04-04 04:21:38,422 [ERROR] send: Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 621, in lifespan
async with self.lifespan_context(app):
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 518, in __aenter__
await self._router.startup()
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 600, in startup
handler()
File "/usr/local/lib/python3.8/dist-packages/txtai/api/application.py", line 67, in start
INSTANCE = Factory.create(config, api) if api else API(config)
File "/usr/local/lib/python3.8/dist-packages/txtai/api/base.py", line 18, in __init__
super().__init__(config, loaddata)
File "/usr/local/lib/python3.8/dist-packages/txtai/app/base.py", line 70, in __init__
self.flows()
File "/usr/local/lib/python3.8/dist-packages/txtai/app/base.py", line 134, in flows
self.workflows[workflow] = WorkflowFactory.create(config, workflow)
File "/usr/local/lib/python3.8/dist-packages/txtai/workflow/factory.py", line 31, in create
tasks.append(TaskFactory.create(tconfig, task))
File "/usr/local/lib/python3.8/dist-packages/txtai/workflow/task/factory.py", line 63, in create
return TaskFactory.get(task)(**config)
File "/usr/local/lib/python3.8/dist-packages/txtai/workflow/task/base.py", line 53, in __init__
self.register(**kwargs)
TypeError: register() got an unexpected keyword argument 'ids'
ERROR: Application startup failed. Exiting.
2022-04-04 04:21:38,424 [ERROR] startup: Application startup failed. Exiting.
root@b2e263bd2b88:~/app#
I attempted this after on my local machine and reproduced the same results.
Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered:
Hi. Checking this project out and excited to get the API running. I set up a docker instance with the official txtai-cpu container and used the default config.yml from the docs to start the process. Here is the config:
I attempt to run the service using this command:
CONFIG=config.yml uvicorn "txtai.api:app"
things appear normal, and models are downloaded from hugginface. After they download I am presented with this error:
I attempted this after on my local machine and reproduced the same results.
Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered: