andriygav commited on
Commit
ae21b9a
·
verified ·
1 Parent(s): 55bf4d4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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.inference import InferenceWorker
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 = InferenceWorker({
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
  })