Skip to content

Commit f2f400e

Browse files
authored
Merge branch 'main' into feature/audio-narration
2 parents 4f99f00 + 4475e9d commit f2f400e

File tree

7 files changed

+70
-10
lines changed

7 files changed

+70
-10
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33

44

5+
## v0.25.5 (2024-05-24)
6+
7+
### Fix
8+
9+
* fix(docs): fix typo in README.md (#686) ([`320bb88`](https://github.com/OpenAdaptAI/OpenAdapt/commit/320bb88c4ca64d296f8c38806eecebbd87684896))
10+
11+
12+
## v0.25.4 (2024-05-22)
13+
14+
### Fix
15+
16+
* fix(installer): Fix build failing due to replicate and other issues (#684) ([`fdf286c`](https://github.com/OpenAdaptAI/OpenAdapt/commit/fdf286ce69f6c3704dd350e7eff2235026e99bd6))
17+
18+
19+
## v0.25.3 (2024-05-22)
20+
21+
### Fix
22+
23+
* fix(installer): add hidden import replicate (#680) ([`6621a04`](https://github.com/OpenAdaptAI/OpenAdapt/commit/6621a04208ab4a076ce0a8175621d1934a0d730e))
24+
25+
26+
## v0.25.2 (2024-05-19)
27+
28+
### Fix
29+
30+
* fix(app): add hidden-imports to build spec (#678) ([`d2db305`](https://github.com/OpenAdaptAI/OpenAdapt/commit/d2db30512bc0488df7c250b10fcf45c5025431ec))
31+
32+
33+
## v0.25.1 (2024-05-17)
34+
35+
### Fix
36+
37+
* fix(config): Fix path of default config file (#675) ([`9ffdf67`](https://github.com/OpenAdaptAI/OpenAdapt/commit/9ffdf677a2db81d4aac901ba582cdcd2a76ad075))
38+
39+
540
## v0.25.0 (2024-05-14)
641

742
### Feature

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ cd OpenAdapt
9797
pip3 install poetry
9898
poetry install
9999
poetry shell
100-
poetry run install-dashbaord
100+
poetry run install-dashboard
101101
cd openadapt && alembic upgrade head && cd ..
102102
pytest
103103
```

openadapt/app/dashboard/app/recordings/detail/page.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { ActionEvent as ActionEventType } from "@/types/action-event";
66
import { Recording as RecordingType } from "@/types/recording";
77
import { Box, Loader, Progress } from "@mantine/core";
88
import { useSearchParams } from "next/navigation";
9-
import { useEffect, useState } from "react";
9+
import { Suspense, useEffect, useState } from "react";
1010

11-
export default function Recording() {
11+
function Recording() {
1212
const searchParams = useSearchParams();
1313
const id = searchParams.get("id");
1414
const [recordingInfo, setRecordingInfo] = useState<{
@@ -95,3 +95,12 @@ function addIdToNullActionEvent(actionEvent: ActionEventType): ActionEventType {
9595
children,
9696
}
9797
}
98+
99+
100+
export default function RecordingPage() {
101+
return (
102+
<Suspense>
103+
<Recording />
104+
</Suspense>
105+
)
106+
}

openadapt/build.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
import subprocess
1313
import sys
1414

15+
import gradio_client
1516
import nicegui
1617
import oa_pynput
1718
import pydicom
1819
import spacy_alignments
20+
import ultralytics
1921

2022
from openadapt.config import POSTHOG_HOST, POSTHOG_PUBLIC_KEY
2123

@@ -30,6 +32,8 @@ def main() -> None:
3032
oa_pynput,
3133
pydicom,
3234
spacy_alignments,
35+
gradio_client,
36+
ultralytics,
3337
]
3438
if sys.platform == "win32":
3539
additional_packages_to_install.append(screen_recorder_sdk)
@@ -38,6 +42,10 @@ def main() -> None:
3842
"py",
3943
]
4044

45+
packages_metadata_to_copy = [
46+
"replicate",
47+
]
48+
4149
OPENADAPT_DIR = Path(__file__).parent
4250
ROOT_DIR = OPENADAPT_DIR.parent
4351

@@ -74,6 +82,9 @@ def main() -> None:
7482
"--onedir",
7583
# prevent console appearing, only use with ui.run(native=True, ...)
7684
"--windowed",
85+
"--hidden-import=tiktoken_ext.openai_public",
86+
"--hidden-import=tiktoken_ext",
87+
"--hidden-import=replicate",
7788
]
7889
ignore_dirs = [
7990
"__pycache__",
@@ -134,13 +145,17 @@ def main() -> None:
134145
spec.append("--exclude-module")
135146
spec.append(package)
136147

148+
for package in packages_metadata_to_copy:
149+
spec.append("--copy-metadata")
150+
spec.append(package)
151+
137152
subprocess.call(spec)
138153

139154
# building
140155
proc = subprocess.Popen("pyinstaller OpenAdapt.spec --noconfirm", shell=True)
141156
proc.wait()
142157

143-
# # cleanup
158+
# cleanup
144159
os.remove("OpenAdapt.spec")
145160

146161
if sys.platform == "darwin":

openadapt/build_utils.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ def is_running_from_executable() -> bool:
3333
class RedirectOutput:
3434
"""Context manager to redirect stdout and stderr to /dev/null."""
3535

36-
null_stream = open(os.devnull, "a")
37-
3836
def __enter__(self) -> "RedirectOutput":
3937
"""Redirect stdout and stderr to /dev/null."""
4038
if is_running_from_executable():
39+
null_stream = open(os.devnull, "a")
4140
self.old_stdout = sys.stdout
4241
self.old_stderr = sys.stderr
43-
sys.stdout = sys.stderr = self.null_stream
42+
sys.stdout = sys.stderr = null_stream
4443
return self
4544

4645
def __exit__(self, exc_type: type, exc_value: Exception, traceback: type) -> None:

openadapt/config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818

1919
from openadapt.build_utils import get_root_dir_path, is_running_from_executable
2020

21-
ROOT_DIR_PATH = get_root_dir_path()
22-
CONFIG_DEFAULTS_FILE_PATH = (ROOT_DIR_PATH / "config.defaults.json").absolute()
21+
CONFIG_DEFAULTS_FILE_PATH = (
22+
pathlib.Path(__file__).parent / "config.defaults.json"
23+
).absolute()
2324

25+
ROOT_DIR_PATH = get_root_dir_path()
2426
DATA_DIR_PATH = (ROOT_DIR_PATH / "data").absolute()
2527
CONFIG_FILE_PATH = (DATA_DIR_PATH / "config.json").absolute()
2628
RECORDING_DIR_PATH = (DATA_DIR_PATH / "recordings").absolute()

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openadapt"
3-
version = "0.25.0"
3+
version = "0.25.5"
44
description = "GUI Process Automation with Transformers"
55
authors = [
66
'OpenAdapt.AI Team <[email protected]>',

0 commit comments

Comments
 (0)