Update README.md
Browse files
README.md
CHANGED
|
@@ -106,7 +106,7 @@ pip install huggingface_hub bigartm==0.9.2
|
|
| 106 |
import asyncio
|
| 107 |
from types import SimpleNamespace
|
| 108 |
|
| 109 |
-
from redup_topicmodel.topicmodel.
|
| 110 |
|
| 111 |
|
| 112 |
def document(document_id: str, tokens: list[str], lang: str):
|
|
@@ -118,7 +118,7 @@ def document(document_id: str, tokens: list[str], lang: str):
|
|
| 118 |
|
| 119 |
|
| 120 |
async def main(root: str):
|
| 121 |
-
worker =
|
| 122 |
"artifact_root": root,
|
| 123 |
"work_dir": "/tmp/topicmodel",
|
| 124 |
})
|
|
|
|
| 106 |
import asyncio
|
| 107 |
from types import SimpleNamespace
|
| 108 |
|
| 109 |
+
from redup_topicmodel.topicmodel.worker import TopicModel
|
| 110 |
|
| 111 |
|
| 112 |
def document(document_id: str, tokens: list[str], lang: str):
|
|
|
|
| 118 |
|
| 119 |
|
| 120 |
async def main(root: str):
|
| 121 |
+
worker = TopicModel({
|
| 122 |
"artifact_root": root,
|
| 123 |
"work_dir": "/tmp/topicmodel",
|
| 124 |
})
|