Skip to content

Commit

Permalink
Fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Apr 26, 2024
1 parent 3f9b62f commit 8ed46e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
app = FastAPI()

data_path = Path("data.json")
params_path = Path("options.json")
params_path = Path("params.json")


@app.get("/info")
Expand Down
2 changes: 1 addition & 1 deletion worker_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def process(self, id, message, rc, ts):
task = MetadataExtractionTask(**message)

if task.params.options:
params_path.write_text(json.dumps(task.params))
params_path.write_text(task.params.model_dump_json())

data_url = f"http://127.0.0.1:5056/get_suggestions/{task.tenant}/{task.params.id}"

Expand Down

0 comments on commit 8ed46e0

Please sign in to comment.