Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
·
9de7a95
1
Parent(s):
5b6371b
increased resolution
Browse files- app/bot.py +3 -3
- app/pipeline.py +2 -2
- frontend/app/components/Controls.js +1 -6
app/bot.py
CHANGED
@@ -87,8 +87,8 @@ class DailyVision(EventHandler):
|
|
87 |
def setup_camera(self):
|
88 |
if not self.__camera:
|
89 |
self.__camera = Daily.create_camera_device("camera",
|
90 |
-
width =
|
91 |
-
height =
|
92 |
color_format="RGB")
|
93 |
self.__client.update_inputs({
|
94 |
"camera": {
|
@@ -134,7 +134,7 @@ class DailyVision(EventHandler):
|
|
134 |
def on_app_message(self, message, sender):
|
135 |
# Update pipeline settings based on message data
|
136 |
self.__params = self.__pipeline.InputParams(**message)
|
137 |
-
|
138 |
return
|
139 |
|
140 |
def wave(self):
|
|
|
87 |
def setup_camera(self):
|
88 |
if not self.__camera:
|
89 |
self.__camera = Daily.create_camera_device("camera",
|
90 |
+
width = 1280,
|
91 |
+
height = 720,
|
92 |
color_format="RGB")
|
93 |
self.__client.update_inputs({
|
94 |
"camera": {
|
|
|
134 |
def on_app_message(self, message, sender):
|
135 |
# Update pipeline settings based on message data
|
136 |
self.__params = self.__pipeline.InputParams(**message)
|
137 |
+
print(self.__pipeline.Info())
|
138 |
return
|
139 |
|
140 |
def wave(self):
|
app/pipeline.py
CHANGED
@@ -58,10 +58,10 @@ class Pipeline:
|
|
58 |
1, min=1, max=15, title="Steps", field="range", hide=True, id="steps"
|
59 |
)
|
60 |
width: int = Field(
|
61 |
-
|
62 |
)
|
63 |
height: int = Field(
|
64 |
-
|
65 |
)
|
66 |
guidance_scale: float = Field(
|
67 |
1.0,
|
|
|
58 |
1, min=1, max=15, title="Steps", field="range", hide=True, id="steps"
|
59 |
)
|
60 |
width: int = Field(
|
61 |
+
1280, min=2, max=15, title="Width", disabled=True, hide=True, id="width"
|
62 |
)
|
63 |
height: int = Field(
|
64 |
+
720, min=2, max=15, title="Height", disabled=True, hide=True, id="height"
|
65 |
)
|
66 |
guidance_scale: float = Field(
|
67 |
1.0,
|
frontend/app/components/Controls.js
CHANGED
@@ -38,12 +38,7 @@ export const Controls = React.memo(({ remoteParams, onData }) => {
|
|
38 |
|
39 |
const debounce = useDebounce();
|
40 |
|
41 |
-
const handleChange = useCallback(
|
42 |
-
(v) => {
|
43 |
-
onData(v);
|
44 |
-
},
|
45 |
-
[onData]
|
46 |
-
);
|
47 |
|
48 |
useEffect(() => {
|
49 |
if (!remoteParams) return;
|
|
|
38 |
|
39 |
const debounce = useDebounce();
|
40 |
|
41 |
+
const handleChange = useCallback((v) => onData(v), [onData]);
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
useEffect(() => {
|
44 |
if (!remoteParams) return;
|