Skip to content

Commit

Permalink
black formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtxm committed Mar 14, 2024
1 parent cc07786 commit b09dd2e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/conversation/observer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Get the events of an ongoing conversation.
"""

import argparse
import os
from time import time
Expand Down
1 change: 1 addition & 0 deletions examples/conversation/stream_file.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Stream file in real time in order to simulate live speech.
"""

import argparse
import os
import time
Expand Down
1 change: 1 addition & 0 deletions examples/recognition/async_bot_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This code is provided as-is for demonstration purposes only and is not
suitable for production. Use at your own risk.
"""

import asyncio
import base64
from typing import Dict
Expand Down
1 change: 1 addition & 0 deletions examples/recognition/sync_bot_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This code is provided as-is for demonstration purposes only and is not
suitable for production. Use at your own risk.
"""

import base64
from typing import Dict

Expand Down
6 changes: 3 additions & 3 deletions examples/recognition/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ def walk_tests(self, in_files: Sequence[str], overrides: Dict[str, Any]):
nlu_desc = test["expected"].get("interpretation")
if nlu_desc:
if "confidence" not in nlu_desc:
nlu_desc[
"confidence"
] = 0.5 # ignored anyway, but expected by Interpretation
nlu_desc["confidence"] = (
0.5 # ignored anyway, but expected by Interpretation
)
interpretation: Optional[Interpretation] = Interpretation(nlu_desc)
else:
interpretation = None
Expand Down
1 change: 0 additions & 1 deletion src/uhlive/stream/conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ async def main(uhlive_client, uhlive_secret):
See the [complete examples in the source distribution](https://github.com/uhlive/python-sdk/tree/main/examples/conversation).
"""


import os
from urllib.parse import urljoin

Expand Down
1 change: 0 additions & 1 deletion src/uhlive/stream/conversation/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Object oriented abstraction over the Conversation API protocol and workflow.
"""


import json
from array import array
from enum import Enum
Expand Down
1 change: 0 additions & 1 deletion src/uhlive/stream/recognition/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
See also https://docs.allo-media.net/stream-h2b/protocols/websocket/#websocket-for-voicebots.
"""


import json
from datetime import datetime
from enum import Enum
Expand Down

0 comments on commit b09dd2e

Please sign in to comment.