Skip to content

Commit

Permalink
Add tag and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Luís Gustavo Cuozzo committed Feb 17, 2021
1 parent dcc44ff commit 45c3aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpqdtrd/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def unregister_all(self):
del self._callbacks[name]
self._reset_start()

def transcribe(self, path, timeout="auto", delete_after=True):
def transcribe(self, path, tag=None, config=None, timeout="auto", delete_after=True):
"""
Transcribe an audio file.
Expand Down Expand Up @@ -267,7 +267,7 @@ def transcribe(self, path, timeout="auto", delete_after=True):
webhooks += ["{}/{}".format(webhook_root, name) for name in self._callbacks]

# Upload audio file. Currently only expects
r = self.api.create(path, callbacks_url=webhooks)
r = self.api.create(path, tag=tag, config=config, callbacks_url=webhooks)
r.raise_for_status()
job = r.json()["job"]
job_id = job["id"]
Expand Down

0 comments on commit 45c3aeb

Please sign in to comment.